From: Joey Hess Date: Thu, 10 Dec 2009 22:29:50 +0000 (-0500) Subject: Avoid using abs_path to determine canonical repo path, as that fails when the repo... X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/8c7de1139db31314694cc5218a1cf93337f16ac2?ds=sidebyside Avoid using abs_path to determine canonical repo path, as that fails when the repo has not yet been checked out. --- diff --git a/debian/changelog b/debian/changelog index 4d07a62..8ba4159 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +mr (0.46) unstable; urgency=low + + * Avoid using abs_path to determine canonical repo path, as that fails + when the repo has not yet been checked out. + + -- Joey Hess Thu, 10 Dec 2009 17:28:26 -0500 + mr (0.45) unstable; urgency=low * Fix pod error. Closes: #558012 diff --git a/mr b/mr index b5d5c11..1a57570 100755 --- a/mr +++ b/mr @@ -791,7 +791,9 @@ sub repodir { my $repo=shift; my $topdir=$repo->{topdir}; my $subdir=$repo->{subdir}; - return abs_path(($subdir =~/^\//) ? $subdir : $topdir.$subdir); + my $ret=($subdir =~/^\//) ? $subdir : $topdir.$subdir; + $ret=~s/\/\.$//; + return $ret; } # figure out which repos to act on