diff --git a/git-mv.perl b/git-mv.perl index 65b1dcfdf..53046bafd 100755 --- a/git-mv.perl +++ b/git-mv.perl @@ -108,7 +108,7 @@ () } } - if (($bad eq "") && ($dst =~ /^$src\//)) { + if (($bad eq "") && ($dst =~ /^$safesrc\//)) { $bad = "can not move directory '$src' into itself"; }