diff --git a/git-mv.perl b/git-mv.perl index 17e35b0..283d7e1 100755 --- a/git-mv.perl +++ b/git-mv.perl @@ -92,6 +92,7 @@ while(scalar @srcArgs > 0) { $src = shift @srcArgs; $dst = shift @dstArgs; $bad = ""; + $dst =~ s/\/+/\//g; if ($opt_v) { print "Checking rename of '$src' to '$dst'\n"; diff --git a/update-index.c b/update-index.c