Skip to content

Commit

Permalink
Only do commands when PLUSHU_REPOS_DIR is defined (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartpb committed Sep 11, 2014
1 parent d140cec commit e973ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
case "$1" in
if [[ -n "$PLUSHU_REPOS_DIR" ]]; then case "$1" in
git-receive-pack|git-upload-pack|git-upload-archive)
cmd=$1
repo=${2%.git}
Expand All @@ -14,4 +14,4 @@ case "$1" in
# Mark that we handled this command
export PLUSHU_COMMAND_HANDLED=$1
;;
esac
esac fi

0 comments on commit e973ad0

Please sign in to comment.