crev-dev / cargo-crev

A cryptographically verifiable code review system for the cargo (Rust) package manager.
Apache License 2.0
2.09k stars 89 forks source link

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

Open VorpalBlade opened 7 months ago

VorpalBlade commented 7 months ago

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
# ...
lolbinarycat commented 3 months ago

i'm also getting this.

workaround:

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