Following the instructions at https://wiki.gentoo.org/wiki/GitHub_Pull_Requests for a pull request, when I get to the step "Make the changes and make sure to run pkgcheck to check for basic errors:" I get an error when I give the command "pkgcheck scan --net --commits". The error says: pkgcheck scan: error: failed running git: fatal: ambiguous argument 'origin': unknown revision or path not in the working tree. Suggested to configure the remote by running 'git remote set-head origin -a'" I even wiped my local mirror completely and restarted from scratch, but the error remains. ~/github/gentoo $ git config --local --list core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true remote.upstream.url=https://github.com/gentoo/gentoo.git remote.upstream.fetch=+refs/heads/*:refs/remotes/upstream/* branch.master.remote=upstream branch.master.merge=refs/heads/master remote.github.url=<redacted> remote.github.fetch=+refs/heads/*:refs/remotes/github/* user.name=<redacted> user.email=<redacted> user.signingkey=<redacted> commit.gpgsign=1 pull.ff=only pull.rebase=merges push.default=simple push.gpgsign=0 ~/github/gentoo $ git remote -v github https://github.com/<github user>/gentoo (fetch) github https://github.com/<github user>/gentoo (push) upstream https://github.com/gentoo/gentoo.git (fetch) upstream https://github.com/gentoo/gentoo.git (push)
Does https://wiki.gentoo.org/wiki/Pkgcheck#failed_retrieving_origin.2FHEAD_commit_hash_for_git_repo help?
(In reply to Sam James from comment #1) > Does > https://wiki.gentoo.org/wiki/Pkgcheck#failed_retrieving_origin. > 2FHEAD_commit_hash_for_git_repo help? $ LC_ALL=C git remote set-head origini master error: Not a valid ref: refs/remotes/origin/master
(In reply to Paolo Pedroni from comment #2) > (In reply to Sam James from comment #1) > > Does > > https://wiki.gentoo.org/wiki/Pkgcheck#failed_retrieving_origin. > > 2FHEAD_commit_hash_for_git_repo help? > > $ LC_ALL=C git remote set-head origini master > error: Not a valid ref: refs/remotes/origin/master Yes, you don't have a 'origin' remote. It's a known annoying issue
(In reply to Sam James from comment #3) > (In reply to Paolo Pedroni from comment #2) > > (In reply to Sam James from comment #1) > > > Does > > > https://wiki.gentoo.org/wiki/Pkgcheck#failed_retrieving_origin. > > > 2FHEAD_commit_hash_for_git_repo help? > > > > $ LC_ALL=C git remote set-head origini master > > error: Not a valid ref: refs/remotes/origin/master > > Yes, you don't have a 'origin' remote. It's a known annoying issue But it used to work (at least until about a year ago, when my last PR was). Anything I can do? I'm by no way a 'git' power user.