]> git.madduck.net Git - code/myrepos.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

mr: Add environment variable to check()
authorRichard Hartmann <richih@debian.org>
Fri, 21 Nov 2014 23:41:57 +0000 (00:41 +0100)
committerRichard Hartmann <richih@debian.org>
Fri, 21 Nov 2014 23:41:57 +0000 (00:41 +0100)
mr

diff --git a/mr b/mr
index e0d27a125a003471e8e4ca09b8bbf992ef43559f..f60ce7b1a1649305d3ff50b338167d525ee4ff2f 100755 (executable)
--- a/mr
+++ b/mr
@@ -1880,7 +1880,7 @@ sub getopts {
 }
 
 sub check {
 }
 
 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{$_});
        }
        foreach (@env) {
                die ("mr: environment variable '$_' is set. You are about to shoot your own foot.\n") if ($ENV{$_});
        }