From: Joey Hess Date: Thu, 11 Oct 2007 04:34:03 +0000 (-0400) Subject: fix mr update when inside a repo X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/72a0284da93c97d390bcc9a0b0b04d0c77f9f281?ds=sidebyside;hp=7effaee66fb19a9fca46c0dca427e0ea2d5b1d90 fix mr update when inside a repo --- diff --git a/mr b/mr index 9a8f750..c15b3a3 100755 --- a/mr +++ b/mr @@ -128,6 +128,7 @@ foreach my $topdir (sort keys %config) { my $dir=$topdir.$subdir; if (defined $directory && + $dir ne $directory && $dir !~ /^\Q$directory\E\//) { print "mr $action: $dir skipped per -d parameter ($directory)\n" if $verbose; push @skipped, $dir;