From: Kevin Lyda Date: Thu, 17 Nov 2016 12:22:48 +0000 (+0000) Subject: Fix commit. X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/c0b61b8edcc876426d5abd3255a83836ca895129?ds=sidebyside;hp=-c Fix commit. Commit is currently broken. This fixes it by shifting the command line arguments to remove "commit" and by correctly quoting "$@". --- c0b61b8edcc876426d5abd3255a83836ca895129 diff --git a/vcsh b/vcsh index de1b419..a798e7d 100755 --- a/vcsh +++ b/vcsh @@ -186,11 +186,12 @@ clone() { commit() { hook pre-commit + shift # remove the "commit" command. for VCSH_REPO_NAME in $(list); do echo "$VCSH_REPO_NAME: " GIT_DIR=$VCSH_REPO_D/$VCSH_REPO_NAME.git; export GIT_DIR use - git commit --untracked-files=no --quiet $@ + git commit --untracked-files=no --quiet "$@" VCSH_COMMAND_RETURN_CODE=$? echo done