summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e36a97f..e8f40f6 100644
--- a/Makefile
+++ b/Makefile
@@ -33,5 +33,6 @@ version.h:
clean:
rm -f hadori hadori.o hadori.1
+ test ! -d .git || git checkout -f -- version.h
.PHONY: version.h clean