-
Notifications
You must be signed in to change notification settings - Fork 534
Different behavior on Fetch and Pull #470
Comments
It seems that the source of the problem is in https://github.com/src-d/go-git/blob/v4/repository.go#L605 The |
I think I know what's going on. When pulling master:
When pulling test:
So this becomes a back and forth cycle that is always treated as an update. I am not sure if native git-pull exhibits that behavior. I believe that HEAD remains unchanged, and FETCH_HEAD is what gets updated. |
#207 (comment) mentions that this is not the expected behavior, but the PR still ended up getting approved. @smola can you shine some light as to why this is the behavior on go-git, and whether there will be a fix/convergence back to the original git behavior in the future? |
@calvn we will take a look ASAP. |
This seems to have been resolved the issue I was having, thanks! |
Uh oh!
There was an error while loading. Please reload this page.
I am getting different error behavior on
Fetch()
andPull()
for a fresh repository that I have created. The repository has one initial commit, and two branches, both on the same commit. The repository object is created viaPlainClone()
.The text was updated successfully, but these errors were encountered: