Skip to content
Snippets Groups Projects
Commit 1536eb46 authored by Richard Hartmann's avatar Richard Hartmann
Browse files

Fix seed-gitignore, which was broken by the refactoring

parent d271ecd0
No related branches found
No related tags found
No related merge requests found
...@@ -84,8 +84,7 @@ if [ "$1" = 'clone' ]; then ...@@ -84,8 +84,7 @@ if [ "$1" = 'clone' ]; then
export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git" export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git"
elif [ "$1" = 'delete' ] || elif [ "$1" = 'delete' ] ||
[ "$1" = 'init' ] || [ "$1" = 'init' ] ||
[ "$1" = 'run' ] || [ "$1" = 'run' ]; then
[ "$1" = 'seed-gitignore' ]; then
[ -z $2 ] && echo "$SELF $1: error: please specify repository to work on" && return 1 [ -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 [ -z $3 ] && echo "$SELF $1 $2: error: please specify a command" && return 1
export VCSH_COMMAND="$1" export VCSH_COMMAND="$1"
...@@ -93,6 +92,10 @@ elif [ "$1" = 'delete' ] || ...@@ -93,6 +92,10 @@ elif [ "$1" = 'delete' ] ||
export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git" export GIT_DIR="$VCSH_BASE/$VCSH_REPO_NAME.git"
shift 2 shift 2
export VCSH_EXTERNAL_COMMAND="$*" 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' ] || elif [ "$1" = 'help' ] ||
[ "$1" = 'list' ]; then [ "$1" = 'list' ]; then
export VCSH_COMMAND="$1" export VCSH_COMMAND="$1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment