summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-03-07 18:53:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-03-07 18:53:14 (GMT)
commite3172d80d5c527048d67310692a8a62efc2c01e5 (patch)
tree31abfc9e1153412685f4a7b63be164bc6935b5cc /git-compat-util.h
parent792f0e7d1a156379fb71deb2e65c349c595a9202 (diff)
parent81a24b52c164b96d37c8c50799a624e2e8ce8a57 (diff)
downloadgit-e3172d80d5c527048d67310692a8a62efc2c01e5.zip
git-e3172d80d5c527048d67310692a8a62efc2c01e5.tar.gz
git-e3172d80d5c527048d67310692a8a62efc2c01e5.tar.bz2
Merge branch 'ar/sgid-bsd'
* ar/sgid-bsd: Do not use GUID on dir in git init --shared=all on FreeBSD
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 2a40703..5912443 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -437,4 +437,10 @@ void git_qsort(void *base, size_t nmemb, size_t size,
#define qsort git_qsort
#endif
+#ifndef DIR_HAS_BSD_GROUP_SEMANTICS
+# define FORCE_DIR_SET_GID S_ISGID
+#else
+# define FORCE_DIR_SET_GID 0
+#endif
+
#endif