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

Fails to push main branch after following instruction in quick setup guide #722

Open
VorpalBlade opened this issue Feb 9, 2024 · 1 comment

Comments

@VorpalBlade
Copy link

I followed the steps in the quick setup guide at https://github.com/crev-dev/cargo-crev/blob/main/cargo-crev/src/doc/getting_started.md

When I run cargo crev publish I get this error:

$ cargo crev publish
From github.com:VorpalBlade/crev-proofs
 * branch            HEAD       -> FETCH_HEAD
Current branch main is up to date.
fatal: The current branch main has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin main

To have this happen automatically for branches without a tracking
upstream, see 'push.autoSetupRemote' in 'git help config'.

Adding RUST_BACKTRACE=1 makes no change to the output, so I don't get any backtrace.

Maybe it is related to my git config. This is the recommended standard these days after all:

# ...
[init]
	defaultBranch = main
# ...
  • Please let us know:
    • Which version are you using (eg. cargo crev --version): cargo-crev 0.25.6
    • How did you install crev (git?, cargo?, your distribution?): cargo install, built with rust 1.76.0 installed via rustup.
    • What OS/platform are you running on: Arch Linux (rolling release, x86-64).
@VorpalBlade VorpalBlade changed the title Fails to push main branch fter following instruction in quick setup guide Fails to push main branch after following instruction in quick setup guide Feb 9, 2024
@lolbinarycat
Copy link

i'm also getting this.

workaround:

$ cd $(cargo crev repo dir)
$ git branch -m main master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants