Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Remove all old packfiles when doing "git repack -a -d"
[gitweb.git]
/
git-mv.perl
diff --git
a/git-mv.perl
b/git-mv.perl
index 17e35b0ac088f83bbcd6d104c77925cd69ded2bb..a21d87eea88d4b1e9a40e4e7f7b836374f566c70 100755
(executable)
--- a/
git-mv.perl
+++ b/
git-mv.perl
@@
-54,6
+54,8
@@
()
my $argCount = scalar @ARGV;
if (-d $ARGV[$argCount-1]) {
$dstDir = $ARGV[$argCount-1];
+ # remove any trailing slash
+ $dstDir =~ s/\/$//;
@srcArgs = @ARGV[0..$argCount-2];
foreach $src (@srcArgs) {