summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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