You are not logged in.

#1 2021-06-05 13:00:03

PolpOnline
Member
Registered: 2021-06-05
Posts: 2

Failed to push some refs error

Hi, when I push my new package to the AUR Git gives me this error:

$  git push
Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Delta compression using up to 8 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1.47 KiB | 1.47 MiB/s, done.
Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
remote: error: pushing to a branch other than master is restricted
remote: error: hook declined to update refs/heads/main
To ssh://aur.archlinux.org/${mynewpackagename}.git
 ! [remote rejected] main -> main (hook declined)
error: failed to push some refs to 'ssh://aur.archlinux.org/${mynewpackagename}.git'

What can I do?

Last edited by PolpOnline (2021-06-05 13:01:19)

Offline

#2 2021-06-05 13:04:43

Scimmia
Fellow
Registered: 2012-09-01
Posts: 8,586

Re: Failed to push some refs error

As it says, you can't push to a branch other than master. If this is for a new package, just clone it first then do your thing there.

Offline

#3 2021-06-05 13:14:01

PolpOnline
Member
Registered: 2021-06-05
Posts: 2

Re: Failed to push some refs error

Thanks for the fast reply!
I was just trying to push main instead of master, are there any chances to get main as accepted?

Offline

#4 2021-06-05 13:16:46

Scimmia
Fellow
Registered: 2012-09-01
Posts: 8,586

Re: Failed to push some refs error

No

Offline

#5 2021-06-05 15:44:17

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 10,337
Website

Re: Failed to push some refs error

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2021-06-05 15:57:06

loqs
Member
Registered: 2014-03-06
Posts: 13,467

Re: Failed to push some refs error

See https://bbs.archlinux.org/viewtopic.php?id=257186 for why master is required.

Offline

Board footer

Powered by FluxBB