-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use '-a' anymore for commit #188
Comments
That particular change was required for git support on windows. |
What about adding the '.' to the command line only if 'disableAppendPaths' is 'false'? As it is done in line 70? From my point of view, that would solve the issue right away and without breaking anything. With '-a' in opt.args, 'disableAppendPaths' needs to be 'true' anyway. |
Want to send a pull request? |
When '-a' is set in opt.args, opt.disableAppendPaths has to be set to 'true' too. Wrap appending the default ' .' path to the commit command accordingly to re-allow the use of '-a' as argument to the 'git commit' command.
Fix indentation of change in commit.js
Fix indentation of change in commit.js
* Cannot use '-a' anymore for commit (#188) When '-a' is set in opt.args, opt.disableAppendPaths has to be set to 'true' too. Wrap appending the default ' .' path to the commit command accordingly to re-allow the use of '-a' as argument to the 'git commit' command. Fix indentation of change in commit.js
Since gulp-git@2.6.0, and opt.args contains '-a', the git command is constructed as
git commit -m "my comment" -a .
Executing this command leads to a git error message
fatal: Paths with -a does not make sense.
When the trailing '.' is omitted, the command works again as expected.
The issue has been introduced by commit fc3ca0d, always appending a '.' to the git commit command.
The text was updated successfully, but these errors were encountered: