1. Stefan Saasen
  2. git


Junio C Hamano  committed c8f2032

git-commit: initialize TMP_INDEX just to be sure.

We rely on TMP_INDEX variable to decide if we are doing a partial commit,
as it is only set in the partial commit codepath. But the variable is
never initialized. A stray environment variable from outside could
ruin the day.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

  • Participants
  • Parent commits 63a1f81
  • Branches master

Comments (0)

Files changed (1)

File git-commit.sh

View file
  • Ignore whitespace
 	exit 1
 rm -f "$NEXT_INDEX"