[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 03f3b23 10/14: Reorder statements in a git sc
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 03f3b23 10/14: Reorder statements in a git script; improve documentation |
Date: |
Sat, 25 Apr 2020 17:43:13 -0400 (EDT) |
branch: master
commit 03f3b2393e097c55f8e75a0c116b02d78698d4d6
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Reorder statements in a git script; improve documentation
---
gwc/share_git2.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gwc/share_git2.sh b/gwc/share_git2.sh
index f3eab6c..8519fa2 100755
--- a/gwc/share_git2.sh
+++ b/gwc/share_git2.sh
@@ -56,9 +56,6 @@ ls -l ./"$inited"/.git/*HEAD
# that of the second method, below.
git -C "$inited" pack-refs --all
-# Generate index and worktree:
-git -C "$inited" checkout master
-
# This succeeds when run by owner:
git -C "$inited" fetch
# this fails:
@@ -67,7 +64,10 @@ sudo --user=pulse git -C "$inited" fetch
chmod g+w "$inited"/.git/FETCH_HEAD
sudo --user=pulse git -C "$inited" fetch
-# Need to do this after fetching, for the worktree.
+# To emulate a non-bare git clone, generate index and worktree:
+git -C "$inited" checkout master
+# ...and then fix their permissions manually--necessary despite
+# 'git init --shared' above):
chmod -R g=u "$inited"
# Second method: git-clone, then fix permissions manually--necessary
- [lmi-commits] [lmi] master 655214a 01/14: Note progress on git FETCH_HEAD permission issue, (continued)
- [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, 2020/04/25
- [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 <=
- [lmi-commits] [lmi] master 7944d8e 13/14: Detect files that have an unexpected GID, Greg Chicares, 2020/04/25