Skip to content

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