From 02d332602145b6e3e3e28dbfd5078fcf04c27446 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 18 Oct 2007 13:33:05 -0400 Subject: [PATCH] * Fix mr register to work when -c is specified using a relative path and is used to register a sibdirectory. --- debian/changelog | 7 +++++++ mr | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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, ); -- 2.39.5