X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/2448eecb5bee6131a84c688007eee74cc2f97ea7..da296ac12ebac1ec10c3855fe62dac752cc5ff10:/vcsh diff --git a/vcsh b/vcsh index ba601b4..38c1e0d 100755 --- a/vcsh +++ b/vcsh @@ -31,18 +31,18 @@ verbose() { help() { echo "usage: $SELF - help Display this help + help Display this help - list List all repos + list List all repos - run - Use this repository + run \\ + Use this repository - init Initialize a new repository - clone - [] Clone from an existing repository + init Initialize a new repository + clone \\ + [] Clone from an existing repository - exit Exit vcsh mode" >&2 + exit Exit vcsh mode" >&2 } use() { @@ -146,15 +146,16 @@ elif [ "$1" = 'clone' ]; then echo "$SELF: fatal: will stop after fetching and not try to merge!\n" && exit 3 git merge origin/master - vcsh use $REPO_NAME +# vcsh use $REPO_NAME verbose "clone end" elif [ "$1" = 'init' ]; then verbose "init begin" + [ -z $2 ] && help; return 0 export REPO_NAME="$2" export GIT_DIR="$VCSH_BASE/$REPO_NAME.git" init - vcsh use $REPO_NAME +# vcsh use $REPO_NAME verbose "init end" elif [ "$1" = 'exit' ]; then