summaryrefslogtreecommitdiff
path: root/Documentation/git-cvsexportcommit.txt
diff options
context:
space:
mode:
authorLibravatar Brandon Williams <bmwill@google.com>2017-04-07 10:23:06 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-04-16 20:09:36 -0700
commitcf9e55f49438d07dd554c5ade92f1c266363af36 (patch)
tree740370f17314a958359b2606562ab28153517dea /Documentation/git-cvsexportcommit.txt
parentEleventh batch for 2.13 (diff)
downloadtgif-cf9e55f49438d07dd554c5ade92f1c266363af36.tar.xz
submodule: prevent backslash expantion in submodule names
When attempting to add a submodule with backslashes in its name 'git submodule' fails in a funny way. We can see that some of the backslashes are expanded resulting in a bogus path: git -C main submodule add ../sub\\with\\backslash fatal: repository '/tmp/test/sub\witackslash' does not exist fatal: clone of '/tmp/test/sub\witackslash' into submodule path To solve this, convert calls to 'read' to 'read -r' in git-submodule.sh in order to prevent backslash expantion in submodule names. Reported-by: Joachim Durchholz <jo@durchholz.org> Signed-off-by: Brandon Williams <bmwill@google.com> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-cvsexportcommit.txt')
0 files changed, 0 insertions, 0 deletions