From 1536eb46c4e6535b1d12b7152763ad883a8dba0e Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Tue, 22 Nov 2011 16:48:23 +0100 Subject: [PATCH] Fix seed-gitignore, which was broken by the refactoring --- vcsh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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" -- 2.39.2