X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-mv.perl;h=53046bafd66ebc4c3a7ef5c65a6363ef5201dcdd;hb=706fe6ae03e2c1452d59892944701c56237b903f;hp=65b1dcfdf2314e2eb8b7bfd1124210ad73269b10;hpb=26169747b811b8ecd5693adfce4f5c7e322d2487;p=git.git diff --git a/git-mv.perl b/git-mv.perl index 65b1dcfd..53046baf 100755 --- a/git-mv.perl +++ b/git-mv.perl @@ -108,7 +108,7 @@ while(scalar @srcArgs > 0) { } } - if (($bad eq "") && ($dst =~ /^$src\//)) { + if (($bad eq "") && ($dst =~ /^$safesrc\//)) { $bad = "can not move directory '$src' into itself"; }