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

Make git depend less on human-readable output #2

Merged
merged 1 commit into from
Jan 25, 2021

Conversation

Corion
Copy link
Contributor

@Corion Corion commented Sep 13, 2015

The Debian version of Git respects the locale, which ends up confusing Git.pm as it looks for "# On branch ..." , where my German localized version of Git outputs "Auf Zweig ..." . The two changes change the following:

  1. Use the short status of git

This only outputs a list of pending changes. If that list is not empty, we want to bail.

  1. Use git rev-parse --abbrev-ref HEAD to find the current branch.

https://stackoverflow.com/questions/6245570/how-to-get-current-branch-name-in-git suggests that is
is the best way of finding the currently active branch.

Thanks for maintaining Module::Release and Module::Release::Git!

The Debian version of Git respects the locale, which ends up confusing Git.pm as it looks for "# On branch ..." , where my German localized version of Git outputs "Auf Zweig ..." . The two changes change the following:

1) Use the short status of git

This only outputs a list of pending changes. If that list is not empty, we want to bail.

2) Use `git rev-parse --abbrev-ref HEAD` to find the current branch.

https://stackoverflow.com/questions/6245570/how-to-get-current-branch-name-in-git suggests that is
is the best way of finding the currently active branch.

Thanks for maintaining Module::Release and Module::Release::Git!
@briandfoy
Copy link
Owner

Yes, we should make this change. I'll have to check out the Travis test failures, but after than it will be in the next release.

Thanks,

@briandfoy briandfoy merged commit 25f1728 into briandfoy:master Jan 25, 2021
@Corion Corion deleted the patch-1 branch January 25, 2021 18:38
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.

None yet

2 participants