Skip to content

Subsequent pushes to the same branch fail: Invalid revision range #1291

@kriswest

Description

@kriswest

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:

  1. Create a branch on your repo
  2. Add a commit to it and push to git proxy
  3. Complete review and approve the commit
  4. Push again to egress.
  5. Make a further change on the branch and commit it
  6. Push to git proxy again - and observe error shown/push rejected due to the error.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions