aboutsummaryrefslogtreecommitdiff
path: root/git-commit.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-11-24 18:03:29 -0800
committerJunio C Hamano <gitster@pobox.com>2007-11-24 18:03:29 -0800
commit788ea12d43605945cbfe74b4dadda8f75c23a411 (patch)
treefc435d73e42eaf8f168f9212fc796154d3b56833 /git-commit.sh
parentbe4b37b9ad22ecc6b4ff5782de8ac0d6d89e2bb7 (diff)
parent859a4dbcadd200ae955fe36d0c4fb3f4bce0e032 (diff)
downloadgit-788ea12d43605945cbfe74b4dadda8f75c23a411.tar.gz
git-788ea12d43605945cbfe74b4dadda8f75c23a411.tar.xz
Merge branch 'rv/maint-index-commit' into maint
* rv/maint-index-commit: Make GIT_INDEX_FILE apply to git-commit
Diffstat (limited to 'git-commit.sh')
-rwxr-xr-xgit-commit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-commit.sh b/git-commit.sh
index 5e3908f2c..1c0c6b9e4 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -26,7 +26,7 @@ refuse_partial () {
}
TMP_INDEX=
-THIS_INDEX="$GIT_DIR/index"
+THIS_INDEX="${GIT_INDEX_FILE:-$GIT_DIR/index}"
NEXT_INDEX="$GIT_DIR/next-index$$"
rm -f "$NEXT_INDEX"
save_index () {