path: root/git.c
diff options
authorJohannes Sixt <>2009-06-30 13:33:57 (GMT)
committerJunio C Hamano <>2009-06-30 18:23:21 (GMT)
commitb8f262699f6c527b13ff95a322fafc0bfbc5a232 (patch)
treea83bb6f0560f27079b319044c329d20c13ef8f52 /git.c
parent6fac1b83bdb9aee73363f93874ffaffd1bc3ad5c (diff)
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 <> Acked-by: Johannes Schindelin <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'git.c')
0 files changed, 0 insertions, 0 deletions