From: Richard Hartmann Date: Tue, 22 Nov 2011 15:48:23 +0000 (+0100) Subject: Fix seed-gitignore, which was broken by the refactoring X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/1536eb46c4e6535b1d12b7152763ad883a8dba0e?ds=sidebyside;hp=--cc Fix seed-gitignore, which was broken by the refactoring --- 1536eb46c4e6535b1d12b7152763ad883a8dba0e diff --git a/vcsh b/vcsh index 93b5d94..0edfe2f 100755 --- a/vcsh +++ b/vcsh @@ -84,8 +84,7 @@ if [ "$1" = 'clone' ]; then export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git" elif [ "$1" = 'delete' ] || [ "$1" = 'init' ] || - [ "$1" = 'run' ] || - [ "$1" = 'seed-gitignore' ]; then + [ "$1" = 'run' ]; then [ -z $2 ] && echo "$SELF $1: error: please specify repository to work on" && return 1 [ -z $3 ] && echo "$SELF $1 $2: error: please specify a command" && return 1 export VCSH_COMMAND="$1" @@ -93,6 +92,10 @@ elif [ "$1" = 'delete' ] || export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git" shift 2 export VCSH_EXTERNAL_COMMAND="$*" +elif [ "$1" = 'seed-gitignore' ]; then + export VCSH_COMMAND="$1" + export VCSH_REPO_NAME="$2" + export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git" elif [ "$1" = 'help' ] || [ "$1" = 'list' ]; then export VCSH_COMMAND="$1"