Use sigaction and SA_RESTART in read-tree.c; add option in Makefile.
[gitweb.git] / git-commit.sh
index 073ec81e14e8aa55df913b4452ead35fb73d5134..59551d99f9672233da2d8d847f9f4d535dba26de 100755 (executable)
@@ -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