summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2009-06-30 13:33:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-06-30 18:23:21 (GMT)
commitb8f262699f6c527b13ff95a322fafc0bfbc5a232 (patch)
treea83bb6f0560f27079b319044c329d20c13ef8f52 /git.c
parent6fac1b83bdb9aee73363f93874ffaffd1bc3ad5c (diff)
downloadgit-b8f262699f6c527b13ff95a322fafc0bfbc5a232.zip
git-b8f262699f6c527b13ff95a322fafc0bfbc5a232.tar.gz
git-b8f262699f6c527b13ff95a322fafc0bfbc5a232.tar.bz2
git-mv: fix directory separator treatment on Windows
The following invocations did not work as expected on Windows: git mv foo\bar dest git mv foo\ dest The first command was interpreted as git mv foo/bar dest/foo/bar because the Windows style directory separator was not obeyed when the basename of 'foo\bar' was computed. The second command failed because the Windows style directory separator was not removed from the source directory, whereupon the lookup of the directory in the index failed. This fixes both issues by using is_dir_sep() and basename(). Signed-off-by: Johannes Sixt <j6t@kdbg.org> Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
0 files changed, 0 insertions, 0 deletions