-
Notifications
You must be signed in to change notification settings - Fork 149
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
After successfully reviewing and pushing a commit to branch through git proxy, subsequent commits to the same branch fail:
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 309 bytes | 309.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Error: fatal: Invalid revision range <SHA redacted1>..<SHA redacted2>
remote:
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
error: failed to push some refs to '<Git Proxy URL redacted>'
<SHA_redacted1>is the SHA of the commit in the previous push that egressed through the proxy - it's the HEAD of the branch.<SHA_redacted2>is the SHA of the commit in the subsequent push that is not yet at the remote repo - hence it would be invalid as its yet to hear of it...
I've yet to track down why this would happen, but it is reproducible with v2.0.0-rc3 and represents a serious issue. I have not yet tried to replicate on main.
To Reproduce
Steps to reproduce the behavior:
- Create a branch on your repo
- Add a commit to it and push to git proxy
- Complete review and approve the commit
- Push again to egress.
- Make a further change on the branch and commit it
- Push to git proxy again - and observe error shown/push rejected due to the error.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working