From: Ramkumar Ramachandra Date: Tue, 18 Jun 2013 12:14:28 GMT Subject: [PATCH 6/8] sh-setup: make die_with_status clear GIT_REFLOG_ACTION Message-ID: <1371557670-12534-7-git-send-email-artagnon@gmail.com> In-Reply-To: <1371557670-12534-1-git-send-email-artagnon@gmail.com> Several callers set GIT_REFLOG_ACTION via set_reflog_action(), but nobody unsets it, leaving a potentially stray variable in the environment. Fix this by making die_with_status() unset it. Signed-off-by: Ramkumar Ramachandra --- git-sh-setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/git-sh-setup.sh b/git-sh-setup.sh index 2f78359..3297103 100644 --- a/git-sh-setup.sh +++ b/git-sh-setup.sh @@ -51,6 +51,7 @@ die () { } die_with_status () { + export GIT_REFLOG_ACTION= status=$1 shift echo >&2 "$*" -- 1.8.3.1.456.gb7f4cb6