Commit Diff


commit - 289045115432562f5fb4ddc721bd9008e8df4ad5
commit + 174ea5d6fee240ec5df3afabfea1c5ce1319e3ea
blob - 0c03f81996732db9c2b469b3c37cff1b0591df8b
blob + e28083e55b9f91ce7a17fe1957992f095098c753
--- Makefile
+++ Makefile
@@ -16,6 +16,10 @@ STAGIT_CFLAGS = ${LIBGIT_INC} ${CFLAGS}
 STAGIT_LDFLAGS = ${LIBGIT_LIB} ${LDFLAGS}
 STAGIT_CPPFLAGS = -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE
 
+# Uncomment to enable workaround for older libgit2 which don't support this
+# option. This workaround will be removed in the future *pinky promise*.
+#STAGIT_CFLAGS += -DGIT_OPT_SET_OWNER_VALIDATION=-1
+
 SRC = \
 	stagit.c\
 	stagit-index.c