aboutsummaryrefslogtreecommitdiff
path: root/git-commit.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-11 18:55:43 -0800
committerJunio C Hamano <junkio@cox.net>2006-02-11 18:55:43 -0800
commit1536dd9c61b5582cf079999057cb715dd6dc6620 (patch)
tree29b1ba52a130a7da952ce161b7136003f9077527 /git-commit.sh
parent7bbdeaa969794edd67cd4a1ed09b9a057b6af4c3 (diff)
downloadgit-1536dd9c61b5582cf079999057cb715dd6dc6620.tar.gz
git-1536dd9c61b5582cf079999057cb715dd6dc6620.tar.xz
Only call git-rerere if $GIT_DIR/rr-cache exists.
Johannes noticed that git-rerere depends on Digest.pm, and if one does not use the command, one can live without it. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-commit.sh')
-rwxr-xr-xgit-commit.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-commit.sh b/git-commit.sh
index 073ec81e1..59551d99f 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -638,7 +638,10 @@ else
fi
ret="$?"
rm -f "$GIT_DIR/COMMIT_MSG" "$GIT_DIR/COMMIT_EDITMSG"
-git-rerere
+if test -d "$GIT_DIR/rr-cache"
+then
+ git-rerere
+fi
if test -x "$GIT_DIR"/hooks/post-commit && test "$ret" = 0
then