diff options
-rwxr-xr-x | bin/samizdat-ssh-command | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/samizdat-ssh-command b/bin/samizdat-ssh-command index 863e7ee..282cffa 100755 --- a/bin/samizdat-ssh-command +++ b/bin/samizdat-ssh-command | |||
@@ -288,10 +288,10 @@ esac | |||
288 | if [ "$git_cmd" = 'git-upload-pack' ]; then | 288 | if [ "$git_cmd" = 'git-upload-pack' ]; then |
289 | case "$git_dir" in | 289 | case "$git_dir" in |
290 | $HOME/public_git/*|public_git/*) | 290 | $HOME/public_git/*|public_git/*) |
291 | is_gitdir "$git_dir" || git_dir="$git_dir/.git" | ||
292 | if ! is_gitdir "$git_dir"; then | 291 | if ! is_gitdir "$git_dir"; then |
293 | # git rev-parse --resolve-git-dir "${git_dir%/.git}" # show git's error message | 292 | git_dir="$git_dir/.git" |
294 | deny | 293 | #git rev-parse --resolve-git-dir "${git_dir%/.git}" # show git's error message |
294 | is_gitdir "$git_dir" || deny | ||
295 | fi | 295 | fi |
296 | if [ "$git_ns" -a -e "$git_dir/refs/namespaces/$git_ns" ]; then | 296 | if [ "$git_ns" -a -e "$git_dir/refs/namespaces/$git_ns" ]; then |
297 | export GIT_NAMESPACE="$git_ns" | 297 | export GIT_NAMESPACE="$git_ns" |