git-commit: cd to top before showing the final stat

Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Junio C Hamano 2007-03-05 12:35:41 -08:00
parent b8105375ab
commit c93d88a574
1 changed files with 3 additions and 0 deletions

View File

@ -621,6 +621,9 @@ else
fi
ret="$?"
rm -f "$GIT_DIR/COMMIT_MSG" "$GIT_DIR/COMMIT_EDITMSG" "$GIT_DIR/SQUASH_MSG"

cd_to_toplevel

if test -d "$GIT_DIR/rr-cache"
then
git-rerere