You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@hwchiu Thanks for this great example of an issue - I could easily reproduce it. Digging into the code I found this line, which states:
elifobj.type=="tag":
# it is a tag object which carries the commit as an object - we can point to anythingreturnobj.object
However, in any case, the API is not delivering on its promise of only returning commit objects, which should be fixed in some way.
We could throw an exception, similar to what already happens in the tree or blob case.
Thus it seems it is up to the caller to determine what kind of object that commit actually is, and the example code would then probably look more like this:
Alternatively, it could recursively resolve the commit, assuming that eventually it will find one. This is certainly the better fix, which I am going for.
Environment
Status
My Code
Is it a bug ? or Do you have any suggestion I can do in my application to get all tag by date?
Thanks.
The text was updated successfully, but these errors were encountered: