From c0b61b8edcc876426d5abd3255a83836ca895129 Mon Sep 17 00:00:00 2001 From: Kevin Lyda Date: Thu, 17 Nov 2016 12:22:48 +0000 Subject: [PATCH] Fix commit. Commit is currently broken. This fixes it by shifting the command line arguments to remove "commit" and by correctly quoting "$@". --- vcsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2