Skip to main content
Sign in
Snippets Groups Projects
Commit c0b61b8e authored by Kevin Lyda's avatar Kevin Lyda :speech_balloon:
Browse files

Fix commit.

Commit is currently broken. This fixes it by shifting the command line
arguments to remove "commit" and by correctly quoting "$@".
parent 0fe34b82
No related branches found
No related tags found
No related merge requests found
...@@ -186,11 +186,12 @@ clone() { ...@@ -186,11 +186,12 @@ clone() {
commit() { commit() {
hook pre-commit hook pre-commit
shift # remove the "commit" command.
for VCSH_REPO_NAME in $(list); do for VCSH_REPO_NAME in $(list); do
echo "$VCSH_REPO_NAME: " echo "$VCSH_REPO_NAME: "
GIT_DIR=$VCSH_REPO_D/$VCSH_REPO_NAME.git; export GIT_DIR GIT_DIR=$VCSH_REPO_D/$VCSH_REPO_NAME.git; export GIT_DIR
use use
git commit --untracked-files=no --quiet $@ git commit --untracked-files=no --quiet "$@"
VCSH_COMMAND_RETURN_CODE=$? VCSH_COMMAND_RETURN_CODE=$?
echo echo
done done
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment