summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7e82b15..72c08fe 100644
--- a/Makefile
+++ b/Makefile
@@ -38,5 +38,6 @@ version.h:
clean:
$(RM) *.1 ssh-agent-filter *.o
+ test ! -d .git || git checkout -f -- version.h
.PHONY: version.h