diff options
-rwxr-xr-x | git-mv.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-mv.perl b/git-mv.perl index ac19876fec..8d294d6529 100755 --- a/git-mv.perl +++ b/git-mv.perl @@ -108,7 +108,7 @@ while(scalar @srcArgs > 0) { } } - if (($bad eq "") && ($src eq $dstDir)) { + if (($bad eq "") && ($dst =~ /^$src\//)) { $bad = "can not move directory '$src' into itself"; } |