X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/3a4566421e1f718a9b2dc2c69212c291660b296c..e3bf7a0bc56990f02434c5dd55d3d9e0badbc716:/vcsh diff --git a/vcsh b/vcsh index c26b50a..0bf5a14 100755 --- a/vcsh +++ b/vcsh @@ -19,7 +19,7 @@ help() { init Initialize a new repository clone - Clone from an existing repository + [] Clone from an existing repository exit Exit vcsh mode" >&2 } @@ -90,7 +90,9 @@ elif [ "$1" = 'use' ]; then elif [ "$1" = 'clone' ]; then export GIT_REMOTE="$2" - export REPO_NAME="$3" + REPO_NAME="$3" + [[ -z $REPO_NAME ]] && REPO_NAME=$(basename $GIT_REMOTE .git) + export REPO_NAME export GIT_DIR="$VCSH_BASE/$REPO_NAME.git" init