Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github upload fails if no branch exists upstream (On blank repositories) #36

Open
NicoHood opened this issue Apr 6, 2022 · 0 comments
Labels

Comments

@NicoHood
Copy link
Owner

NicoHood commented Apr 6, 2022

How to reproduce:

  1. Create a whole new repository via Github
  2. Clone it locally
  3. Make a commit but don't push
  4. Run gpgit and it will fail

The error:

==> 5. Upload the release
  -> 5.1 Configure HTTPS download server
    Github uses well configured https.
  -> 5.2 Upload to Github
    Creating new Github release '0.2.0'.
==> ERROR: Github API message: 'Validation Failed'. Check your token configuration: https://github.com/settings/tokens

The error is quite missleading. It happens because no branch exists upstream, so the release cannot be tagged onto that branch. We should either push the current branch (which has pro & cons) or detect that issue as early as possible.

@NicoHood NicoHood added the bug label Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant