[PATCH] git-commit: Only call git-rerere if $GIT_DIR/rr-cache exists
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 11, 2006, 15:03 UTC
- Message-ID
- <Pine.LNX.4.63.0602111602270.26560@wbgn013.biozentrum.uni-wuerzburg.de>
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 <Johannes.Schindelin@gmx.de>
---
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