From: Joey Hess Date: Thu, 18 Oct 2007 17:33:05 +0000 (-0400) Subject: * Fix mr register to work when -c is specified using a relative path and X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/02d332602145b6e3e3e28dbfd5078fcf04c27446 * Fix mr register to work when -c is specified using a relative path and is used to register a sibdirectory. --- diff --git a/debian/changelog b/debian/changelog index 88335fb..17eea27 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +mr (0.4) UNRELEASED; urgency=low + + * Fix mr register to work when -c is specified using a relative path and + is used to register a sibdirectory. + + -- Joey Hess Thu, 18 Oct 2007 13:32:21 -0400 + mr (0.3) unstable; urgency=low * Add a check to make sure the expected directory exists after checkout. diff --git a/mr b/mr index d170e67..e735b67 100755 --- a/mr +++ b/mr @@ -261,7 +261,7 @@ my %alias; Getopt::Long::Configure("no_permute"); my $result=GetOptions( "d|directory=s" => sub { $directory=abs_path($_[1]) }, - "c|config=s" => \$ENV{MR_CONFIG}, + "c|config=s" => sub { $ENV{MR_CONFIG}=abs_path($_[1]) }, "v|verbose" => \$verbose, "s|stats" => \$stats, );