From: Johannes Schindelin Date: Sat, 11 Feb 2006 15:03:04 GMT Subject: [PATCH] git-commit: Only call git-rerere if $GIT_DIR/rr-cache exists Message-ID: This makes an error go away if you do not have Digest.pm installed, but do not intend to make use of git-rerere anyway. Signed-off-by: Johannes Schindelin --- git-commit.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 111b9e1abeb98a8009a457fe8e7dff5a91b30778 diff --git a/git-commit.sh b/git-commit.sh index 073ec81..28ec7c3 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -638,7 +638,7 @@ else fi ret="$?" rm -f "$GIT_DIR/COMMIT_MSG" "$GIT_DIR/COMMIT_EDITMSG" -git-rerere +test -d "$GIT_DIR/rr-cache" && git-rerere if test -x "$GIT_DIR"/hooks/post-commit && test "$ret" = 0 then -- 1.1.4.gaef2-dirty