summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-10-14 14:14:14 -0400
committerAndrew Cady <d@jerkface.net>2020-10-14 14:14:14 -0400
commit21f59a6bb67615fc9cea97a35d428ab5c21302d6 (patch)
treee6e1888cee5b97d4f1d351843e0436847a5a65d6
parent63bc97cc26be1ae474e831bd7cc9c3c519d69f50 (diff)
avoid redundant check
-rwxr-xr-xbin/samizdat-ssh-command6
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
288if [ "$git_cmd" = 'git-upload-pack' ]; then 288if [ "$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"