DORMANTno replies

[PATCH] git-commit: Only call git-rerere if $GIT_DIR/rr-cache exists

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:42:18
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>

---

 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help