You are not logged in.

#1 2019-12-05 04:18:09

PopeRigby
Member
Registered: 2019-10-19
Posts: 35

[SOLVED] "fatal: Couldn't find remote ref HEAD"

I'm currently trying to submit a PKGBUILD to the AUR.

After following this article, I have...

  • My git repository containing the PKGBUILD

  • A public SSH key copied into AUR my profile (this SSH key is only being used for the AUR)

  • A private SSH key configured for aur.archlinux.org, like so:

    ~/.ssh/config
    Host aur.archlinux.org
      IdentityFile ~/.ssh/aur
      User aur
  • A git remote labeled aur, pointing to ssh://aur@aur.archlinux.org/daemon-engine.git

After all that is setup, when I run

git fetch aur master

It gives me this error

fatal: couldn't find remote ref master
fatal: the remote end hung up unexpectedly

Some extra potentially relevant information:

  • My version of openssh is 8.1p1-2

  • My version of git is 2.24.0-1

Last edited by PopeRigby (2019-12-09 02:50:18)

Offline

#2 2019-12-05 15:43:32

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 7,640

Re: [SOLVED] "fatal: Couldn't find remote ref HEAD"

Does git fetch aur work ?

If not, post output of

git remove -v

Multi-init booting with apg Openrc and systemd coexisting
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#3 2019-12-05 17:55:18

PopeRigby
Member
Registered: 2019-10-19
Posts: 35

Re: [SOLVED] "fatal: Couldn't find remote ref HEAD"

Lone_Wolf wrote:

Does git fetch aur work ?

Nope, that does nothing. No output either.

If not, post output of

git remove -v

I assume you meant to say remote. The output of that is:

aur     ssh://aur@aur.archlinux.org/daemon-engine.git (fetch)
aur     ssh://aur@aur.archlinux.org/daemon-engine.git (push)
origin  git@gitea.com:PopeRigby/daemon-engine-aur.git (fetch)
origin  git@gitea.com:PopeRigby/daemon-engine-aur.git (push)

Offline

#4 2019-12-05 18:18:46

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 9,307
Website

Re: [SOLVED] "fatal: Couldn't find remote ref HEAD"

aur.archlinux.org/daemon-engine.git is an empty repository, which is why it can't find remote ref master.


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2019-12-05 18:51:26

PopeRigby
Member
Registered: 2019-10-19
Posts: 35

Re: [SOLVED] "fatal: Couldn't find remote ref HEAD"

Because of this section of the article, I was under the impression I needed to set an aur remote to a currently empty repository, if I wanted to upload a new package. This part specifically made me think that:

If you already have a package, initialize it as a Git repository if it is not one, and add an AUR remote:

$ git remote add label ssh://aur@aur.archlinux.org/pkgbase.git

Then fetch this remote to initialize it in the AUR.

Did I misread?

Last edited by PopeRigby (2019-12-05 18:52:29)

Offline

#6 2019-12-09 02:49:37

PopeRigby
Member
Registered: 2019-10-19
Posts: 35

Re: [SOLVED] "fatal: Couldn't find remote ref HEAD"

I was able to fix it by cloning

ssh://aur@aur.archlinux.org/pkgbase.git

and adding a .SRCINFO file. I guess I forgot to do that.

Offline

Board footer

Powered by FluxBB