[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 38a6c93 12/14: Let git create its own directo
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 38a6c93 12/14: Let git create its own directory |
Date: |
Sat, 25 Apr 2020 17:43:14 -0400 (EDT) |
branch: master
commit 38a6c93f55b9a2755eec304644f39a8c27d6bb13
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Let git create its own directory
It is of course possible to create the directory before calling
'git init':
mkdir DIR
chmod g+sw DIR
chgrp audio DIR
but 'git init --shared' takes care of everything except GID anyway,
and it seems simpler to call
chgrp -R audio DIR
after 'git init'. The '-R' flag can do no harm, unlike 'chmod -R ...',
which can have surprising effects.
---
gwc/share_git2.sh | 4 ----
1 file changed, 4 deletions(-)
diff --git a/gwc/share_git2.sh b/gwc/share_git2.sh
index d4f13fb..3a5c63f 100755
--- a/gwc/share_git2.sh
+++ b/gwc/share_git2.sh
@@ -38,10 +38,6 @@ sudo --user=pulse true
inited="inited_nonbare"
-mkdir "$inited"
-# Need to run 'chmod' because git doesn't create this directory.
-chmod g+sw "$inited"
-
# The crux of this method is 'git init':
git init --shared "$inited"
chgrp -R audio "$inited"
- [lmi-commits] [lmi] master updated (f4054dc -> 9f235b6), Greg Chicares, 2020/04/25
- [lmi-commits] [lmi] master 16a146d 03/14: Correct flaws in git script documentation, Greg Chicares, 2020/04/25
- [lmi-commits] [lmi] master 032d679 02/14: Reduce gratuitous differences between git scripts, Greg Chicares, 2020/04/25
- [lmi-commits] [lmi] master 655214a 01/14: Note progress on git FETCH_HEAD permission issue, Greg Chicares, 2020/04/25
- [lmi-commits] [lmi] master c78c9aa 06/14: Reduce differences between git scripts, Greg Chicares, 2020/04/25
- [lmi-commits] [lmi] master 02f33b5 07/14: Don't rely on a nondefault umask, Greg Chicares, 2020/04/25
- [lmi-commits] [lmi] master d432bc8 09/14: Improve documentation of git scripts, Greg Chicares, 2020/04/25
- [lmi-commits] [lmi] master 28dbf67 08/14: Reduce differences between git scripts, Greg Chicares, 2020/04/25
- [lmi-commits] [lmi] master 063d24d 04/14: Reduce differences between git scripts, Greg Chicares, 2020/04/25
- [lmi-commits] [lmi] master 38a6c93 12/14: Let git create its own directory,
Greg Chicares <=
- [lmi-commits] [lmi] master 9f235b6 14/14: Don't mess with GID or permissions of $PWD, Greg Chicares, 2020/04/25
- [lmi-commits] [lmi] master 3dace32 05/14: Check permissions more thoroughly, Greg Chicares, 2020/04/25
- [lmi-commits] [lmi] master aedc8d0 11/14: Detect files that aren't group writable, Greg Chicares, 2020/04/25
- [lmi-commits] [lmi] master 03f3b23 10/14: Reorder statements in a git script; improve documentation, Greg Chicares, 2020/04/25
- [lmi-commits] [lmi] master 7944d8e 13/14: Detect files that have an unexpected GID, Greg Chicares, 2020/04/25