From 6381ce658f88b2e2e8fdc4a019cebcabf1d6eb28 Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Sat, 22 Nov 2014 00:41:57 +0100 Subject: [PATCH] mr: Add environment variable to check() --- mr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mr b/mr index e0d27a1..f60ce7b 100755 --- a/mr +++ b/mr @@ -1880,7 +1880,7 @@ sub getopts { } sub check { - my @env = qw(GIT_DIR VCSH_COMMAND); + my @env = qw(GIT_DIR GIT_WORK_TREE VCSH_COMMAND); foreach (@env) { die ("mr: environment variable '$_' is set. You are about to shoot your own foot.\n") if ($ENV{$_}); } -- 2.39.5