[PATCH] git: git-commit-script ignores $GIT_DIR

This commit is contained in:
Alexey Guzeev 2005-06-01 00:31:02 -04:00 committed by Linus Torvalds
parent 837eedf41b
commit ef6a46e6ea

View File

@ -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