Skip to content
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

fix(cli): Make gz -a working again #573

Merged
merged 1 commit into from Oct 3, 2018
Merged

fix(cli): Make gz -a working again #573

merged 1 commit into from Oct 3, 2018

Conversation

thierrymichel
Copy link
Contributor

fix #543

@jimthedev jimthedev requested a review from LinusU October 1, 2018 17:21
@jimthedev
Copy link
Member

@LinusU if looks good to you then feel free to squash and merge as all CI is passing!

@jimthedev
Copy link
Member

PS @thierrymichel thanks for the PR and your patience :)

@thierrymichel
Copy link
Contributor Author

@jimthedev you're welcome. I hope it will address the issue.
And, above all, thanks to @mysterycommand 👍

@@ -6,7 +6,7 @@ export { isClean };
* Asynchrounously determines if the staging area is clean
*/
function isClean (repoPath, done) {
exec('git diff --cached --name-only', {
exec('git diff --no-ext-diff --name-only && git diff --no-ext-diff --cached --name-only', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could git diff-index --quiet HEAD work? 🤔 That way we only have to execute git once.

ref: https://unix.stackexchange.com/a/394674

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LinusU The problem is that HEAD points to a commit/branch.
So, before your first commit, you will get a fatal: bad revision 'HEAD'.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right, looks good then 👍 thanks for checking!

@jimthedev jimthedev merged commit 7c4703b into commitizen:master Oct 3, 2018
@jimthedev
Copy link
Member

ok, released in 3.0.2. Thanks for work @thierrymichel!

@thierrymichel thierrymichel deleted the fix/commit-all branch October 4, 2018 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

git cz -a just differently broken now
3 participants