From: Joey Hess Date: Sun, 21 Oct 2007 23:33:33 +0000 (-0400) Subject: fix leaf subdir case X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/ec4e590670f444fdbea5ad72dbda9cfdd4eac4b0?ds=sidebyside fix leaf subdir case --- diff --git a/mr b/mr index 0bded23..d9cde93 100755 --- a/mr +++ b/mr @@ -239,8 +239,7 @@ repositories be processed earlier, and larger values to make repositories be processed later. Note that if a repository is located in a subdirectory of another -repository, ordering it to be processed earlier is not recommended, as this -can cause confusion during checkouts. +repository, ordering it to be processed earlier is not recommended. =item chain @@ -448,7 +447,7 @@ foreach my $repo (@list) { } if (! @repos) { # fallback to find a leaf repo - foreach my $repo (@list) { + foreach my $repo (reverse @list) { my $topdir=$repo->{topdir}; my $subdir=$repo->{subdir};