summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 837eedf)
raw | patch | inline | side by side (parent: 837eedf)
author | Alexey Guzeev <aga@supplehost.com> | |
Wed, 1 Jun 2005 04:31:02 +0000 (00:31 -0400) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Wed, 1 Jun 2005 14:51:51 +0000 (07:51 -0700) |
git-commit-script | patch | blob | history |
diff --git a/git-commit-script b/git-commit-script
index 42ee399bc1028ab483aa4678ad376c065d7e7a5d..e818d0a35ce2a9f5358520b7c44dfe27845de4b7 100755 (executable)
--- a/git-commit-script
+++ b/git-commit-script
[ -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