summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2021-10-24 18:17:57 -0400
committerAndrew Cady <d@jerkface.net>2021-10-24 18:17:57 -0400
commit53baccbd52f940b01e8b10006292d255193d7a2c (patch)
tree7b7638a4221e681602fa2abfcc068e83f74e316b
parent89395ba3f6ea5c91f93033962feff36e67c06efd (diff)
fixup! Minimal Git/SSH Rhizome
-rwxr-xr-xEndoForge/src/AnonymousAccessCommand10
1 files changed, 2 insertions, 8 deletions
diff --git a/EndoForge/src/AnonymousAccessCommand b/EndoForge/src/AnonymousAccessCommand
index 443d25e..b06dd93 100755
--- a/EndoForge/src/AnonymousAccessCommand
+++ b/EndoForge/src/AnonymousAccessCommand
@@ -70,7 +70,6 @@ read authtype authline < "$SSH_USER_AUTH" || exit
70[ "$authtype" = publickey ] || exit 70[ "$authtype" = publickey ] || exit
71 71
72cmd=${SSH_ORIGINAL_COMMAND%% *} 72cmd=${SSH_ORIGINAL_COMMAND%% *}
73
74case "$cmd" in 73case "$cmd" in
75 git-send-pack | git-upload-pack) 74 git-send-pack | git-upload-pack)
76 GIT_NAMESPACE= 75 GIT_NAMESPACE=
@@ -107,14 +106,9 @@ with_allowCurrentBranch()
107 echo $$ > "$lockfile" 106 echo $$ > "$lockfile"
108 trap 'rm -f "$lockfile"' EXIT 107 trap 'rm -f "$lockfile"' EXIT
109 108
110 # This doesn't seem very secure. Need to patch git probably. 109 git config core.bare true
111 for deny in CurrentBranch # DeleteCurrent
112 do git config receive.deny$deny false
113 done
114 "$@" 110 "$@"
115 for deny in CurrentBranch # DeleteCurrent 111 git config core.bare false
116 do git config receive.deny$deny true
117 done
118 ) 112 )
119} 113}
120 114