nimble icon indicating copy to clipboard operation
nimble copied to clipboard

nimble publish failed if (local) git default branch name is not master

Open codehz opened this issue 4 years ago • 3 comments

maybe we should specify the a hard-coded branch name for the temporory repo

      Info: Writing access token to file:C:\Users\CodeHz\.nimble\github_api_token
   Success: Verified as codehz
      Info: Waiting 10s to let Github create a fork
    Copying packages fork into: C:\Users\CodeHz\AppData\Local\Temp\nimble-packages-fork
   Updating the fork
       Tip: 1 messages have been suppressed, use --verbose to show them.
     Error: Execution failed with exit code 1
        ... Command: git push https://[email protected]/codehz/packages master
        ... Output: error: src refspec master does not match any
        ... error: failed to push some refs to 'git://github.com/codehz/packages'

codehz avatar Dec 17 '20 13:12 codehz

This is still a thing. It should be easy to just specify the branch with cloning the repo.

elcritch avatar Oct 04 '22 18:10 elcritch

What is the code edit workaround? I tried to use "nimble publish" to submit my project, but just got tripped up by this bug. The workaround I ended up going with is making the edit and pull request manually through GitHub's website.

hugs avatar Jun 23 '23 21:06 hugs

I locally resolved this by running git config --global init.defaultBranch master, then re-running nimble publish

Nycto avatar Feb 03 '24 22:02 Nycto