X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/8ae70a31cd3553ea94502b9784ba4dc5bee274c4..a952800661456fd5eb1801168380b7210d581371:/vcsh diff --git a/vcsh b/vcsh index f9bea25..183eb17 100755 --- a/vcsh +++ b/vcsh @@ -274,7 +274,7 @@ list() { get_files() { GIT_DIR=$VCSH_REPO_D/$VCSH_REPO_NAME.git; export GIT_DIR - git ls-files + git ls-files --full-name } list_tracked() { @@ -476,7 +476,7 @@ write_gitignore() { use cd "$VCSH_BASE" || fatal "could not enter '$VCSH_BASE'" 11 - local GIT_VERSION=$(git --version) + local GIT_VERSION="$(git --version)" local GIT_VERSION_MAJOR=$(echo $GIT_VERSION | sed -n 's/.* \([0-9]\)\..*/\1/p') local GIT_VERSION_MINOR=$(echo $GIT_VERSION | sed -n 's/.* \([0-9]\)\.\([0-9]\)\..*/\2/p') OLDIFS=$IFS