From 55aaa6e6147f9fd18d6b30508c36710328d6c173 Mon Sep 17 00:00:00 2001 From: "https://christian.amsuess.com/chrysn" Date: Thu, 15 Dec 2022 13:36:59 +0000 Subject: [PATCH] Added a comment: Shared git repos --- ...omment_1_220b33912339f06fbc9f6c9fbe1a4756._comment | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 doc/forum/Handling_permissions_in_a_shared_folder/comment_1_220b33912339f06fbc9f6c9fbe1a4756._comment diff --git a/doc/forum/Handling_permissions_in_a_shared_folder/comment_1_220b33912339f06fbc9f6c9fbe1a4756._comment b/doc/forum/Handling_permissions_in_a_shared_folder/comment_1_220b33912339f06fbc9f6c9fbe1a4756._comment new file mode 100644 index 0000000000..36632ca0b6 --- /dev/null +++ b/doc/forum/Handling_permissions_in_a_shared_folder/comment_1_220b33912339f06fbc9f6c9fbe1a4756._comment @@ -0,0 +1,11 @@ +[[!comment format=mdwn + username="https://christian.amsuess.com/chrysn" + nickname="chrysn" + avatar="http://christian.amsuess.com/avatar/c6c0d57d63ac88f3541522c4b21198c3c7169a665a2f2d733b4f78670322ffdc" + subject="Shared git repos" + date="2022-12-15T13:36:59Z" + content=""" +Git has an option to initialize repos in a shared mode (`git init --shared=group`); then it sets all relevant files not only to group writable, but also sets sticky bits so that the group is preserved. + +This does also work with git-annex. (It doesn't work so well when users rsync-copy data to that shared repository, but a) that may have been fixed since I stopped letting multiple users do it, and b) it probably doesn't apply to your use case). +"""]] -- 2.30.2