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
I encountered a strange behavior when pushing an annotated tag. Upon investigation, I noticed that isomorphic-git's behavior is slightly different than Git's. I'm not sure it's a bug or may cause bugs down the line. I'm posting this question, to check with you if that might be the case.
To reproduce
Clone an empty repository
Add a file, then git add and commit: create a first commit on main
Push main
Create an annotated tag : git tag -a v1.0 -m "add tag"
On the Git server, the tag seems to be correctly pushed
On my Git GUI (both VSCode's Git Graph and GitHub Desktop), a new "tag" is displayed called origin/refs/tags/v1.0^{} <= This is what ticked me off
I looked at the .git folder, and isomorphic-git created a new ref at refs/remotes/origin/refs/tags/v1.0
Comparing with git push
Instead of calling git.push(), I ran the command git push origin v1.0
On my Git GUI, I did not see a new "tag"
Git did not modify the .git folder, and did not add a new ref
Do you have an explanation for this discrepancy? Does it have any impact down the line with future commands? Would you recommend that I investigate further isomorphic-git's code?
Notes
I am using isomorphic-git 1.25.7 on Node
My Git version is 2.41.0.windows.1
The text was updated successfully, but these errors were encountered:
I encountered a strange behavior when pushing an annotated tag. Upon investigation, I noticed that isomorphic-git's behavior is slightly different than Git's. I'm not sure it's a bug or may cause bugs down the line. I'm posting this question, to check with you if that might be the case.
To reproduce
main
main
git tag -a v1.0 -m "add tag"
Result
origin/refs/tags/v1.0^{}
<= This is what ticked me off.git
folder, and isomorphic-git created a new ref atrefs/remotes/origin/refs/tags/v1.0
Comparing with git push
Instead of calling
git.push()
, I ran the commandgit push origin v1.0
.git
folder, and did not add a new refDo you have an explanation for this discrepancy? Does it have any impact down the line with future commands? Would you recommend that I investigate further isomorphic-git's code?
Notes
The text was updated successfully, but these errors were encountered: