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

Catch "HEAD -> master" when creating the changelog #396

Merged
merged 1 commit into from
Jul 20, 2015

Conversation

tocker
Copy link
Contributor

@tocker tocker commented Jul 20, 2015

Fixes #395.

git log may report (HEAD -> master, tag:...) instead of (HEAD, tag:...).

3582b9a$        2015-07-19$      (HEAD -> master, tag: v0.6, tag: lightweight)

This causes changelog to fail:

$ git changelog -x -p
fatal: ambiguous argument 'HEAD -> master..': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

This PR will fix this issue by matching anything coming after HEAD up to the first comma.

git log may report `(HEAD -> master, tag:...)` instead of `(HEAD, tag:...)`.
@hemanth
Copy link
Collaborator

hemanth commented Jul 20, 2015

Thanks 👍

hemanth added a commit that referenced this pull request Jul 20, 2015
Catch "HEAD -> master" when creating the changelog
@hemanth hemanth merged commit 7d1ede1 into tj:master Jul 20, 2015
@tocker
Copy link
Contributor Author

tocker commented Jul 20, 2015

That was fast! 😄

@hemanth
Copy link
Collaborator

hemanth commented Jul 20, 2015

😉

@qw3rtman qw3rtman mentioned this pull request Dec 27, 2015
tardypad pushed a commit to tardypad/git-extras that referenced this pull request Jul 13, 2016
Catch "HEAD -> master" when creating the changelog
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.

changelog fails when log includes HEAD -> master
2 participants