From: Daniel Bungert Date: Thu, 19 Jun 2008 01:55:44 +0000 (-0400) Subject: fix register when config file is overridden X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/1b7137c19b38431c79b41d1dfde73ef76f826836?ds=inline fix register when config file is overridden --- diff --git a/mr b/mr index 55dbdee..4fc7971 100755 --- a/mr +++ b/mr @@ -1027,7 +1027,9 @@ sub config { #{{{ } #}}} sub register { #{{{ - if (! $config_overridden) { + if ($config_overridden) { + ($directory)=$ENV{MR_CONFIG}=~/^(.*\/)[^\/]+$/; + } else { # Find the closest known mrconfig file to the current # directory. $directory.="/" unless $directory=~/\/$/;