aboutsummaryrefslogtreecommitdiff
path: root/git-commit-script
diff options
context:
space:
mode:
authorAlexey Guzeev <aga@supplehost.com>2005-06-01 00:31:02 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-01 07:51:51 -0700
commitef6a46e6eaae5e70df8b7ef9d7ead66c3313027e (patch)
treed5b6edc81164b53f9d155f7a2f2b8405c404f44e /git-commit-script
parent837eedf41bc9acd0fe6e2e408386eac847493419 (diff)
downloadgit-ef6a46e6eaae5e70df8b7ef9d7ead66c3313027e.tar.gz
git-ef6a46e6eaae5e70df8b7ef9d7ead66c3313027e.tar.xz
[PATCH] git: git-commit-script ignores $GIT_DIR
Diffstat (limited to 'git-commit-script')
-rwxr-xr-xgit-commit-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-commit-script b/git-commit-script
index 42ee399bc..e818d0a35 100755
--- a/git-commit-script
+++ b/git-commit-script
@@ -10,4 +10,4 @@ grep -v '^#' < .editmsg | git-stripspace > .cmitmsg
[ -s .cmitmsg ] || exit 1
tree=$(git-write-tree) || exit 1
commit=$(cat .cmitmsg | git-commit-tree $tree -p HEAD) || exit 1
-echo $commit > .git/HEAD
+echo $commit > ${GIT_DIR:-.git}/HEAD