-
Notifications
You must be signed in to change notification settings - Fork 302
FAILED: runGitDescribeWithMatchOption, has trouble on Travis #146
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
Comments
I expect this to be some kind of travis specific thing... |
I just checked this with on Hudson....
seems to be a CI related problem.... |
is it a shallow clone or a deep one? -- On 8 December 2014 at 22:40:33, TheSnoozer (notifications@github.com) wrote: I just checked this with on Hudson.... $ git status Not currently on any branch. nothing to commit (working directory clean) $ git symbolic-ref HEAD seems to be a CI related problem.... — |
shallow with depth of 100 |
mind investigating a bit more? does it work with not shallow? -- On 8 December 2014 at 22:43:07, TheSnoozer (notifications@github.com) wrote: shallow with depth of 100 — |
How does the native impl behave -- On 8 December 2014 at 22:43:07, TheSnoozer (notifications@github.com) wrote: shallow with depth of 100 — |
I try to investigate, stay tuned.... I builded a wrapper around git, to get the actual commands...
|
I finally got it reproduced on my local machine....
To reproduce locallay run a After doing this all you are in 'detached HEAD' state and there will be no symbolic HEAD, resulting in
Additionally git show-ref will return this
|
Thanks a lot! -- On 9 December 2014 at 00:16:22, TheSnoozer (notifications@github.com) wrote: I finally got it reproduced on my local machine.... git fetch -t git://github.com/ktoso/maven-git-commit-id-plugin.git +refs/heads/:refs/remotes/origin/ --depth=100 To reproduce locallay run a git init before and you can skip the tag... After doing this all you are in 'detached HEAD' state and there will be no symbolic HEAD, resulting in $ git symbolic-ref HEAD Additionally git show-ref will return this $ git show-ref — |
No worries, always here to help ;) So a more less fix would be:
If we still can not obtain the Branch Information I suggest the plugin should output a WARNING and leave the branch blank... Also for future reference: |
Btw. In case of 'DETACHED HEAD' the JGIT Implementation outputs the SHA of the commit
|
This test
runGitDescribeWithMatchOption
has trouble on travis, see: https://travis-ci.org/ktoso/maven-git-commit-id-plugin/builds/43299247The text was updated successfully, but these errors were encountered: