finos / git-proxy

Deploy custom push protections and policies on top of Git
https://git-proxy.finos.org
Apache License 2.0
87 stars 58 forks source link

Unable to push a new branch to an empty repository 🪵 #595

Open JamieSlome opened 1 month ago

JamieSlome commented 1 month ago

Describe the bug

When attempting to push to an empty repository on GitHub, the push of a new branch with an initial commit fails.

To Reproduce

  1. Create a fresh repository with nothing in it - no branches
  2. Add the repository to GitProxy
  3. Clone the repository through GitProxy
  4. Make a novel change, commit and push the branch

Expected behavior

The branch and commit created on the local git client should be pushable via GitProxy to the upstream.

divinetettey commented 6 days ago

Hi @JamieSlome love to pick this one up too