Open StrangeNoises opened 6 years ago
Thanks for reporting this! We missed the case where walking the tree following the first parent might not be possible.
Noticed the similar issue or maybe it is just the same. If two tags point to the same commit, I also get Inconsistent git describe.
Same problem here with, get a "Inconsistent git describe" error when there is two tags on the same commit
Maybe related(please confirm): [PATCH] Missing commit when fetching on shallow clone
i'm sorry i'm not using it any more. also gave up on shallow clones as i hit other more intractable problems with it in my situation!
I'm getting this error:
Running with debug gets me a loong stack trace but the top of it looks like:
This git repo was checked out with:
(it's a legacy project, recently - just now - converted to gradle; cloning the whole thing is huge, i wanted to do a minimal checkout.)
I had an earlier error where
gitVersion()
itself was returning null, causing a later error while writing a manifest, so I created a tag, then I get this.The commit object mentioned as being missing in the above stacktrace is the penultimate one, ie: the one before the most recent, and therefore as I used
--depth 1
it wasn't fetched. So I tried it again with--depth 2
and sure enough it all worked; in fact it worked without me needing to create that tag to have git describe have something to report. So I have a solution for myself, but this does look like a bug.