You are not logged in.

#1 2022-02-14 20:44:51

SkwalExe
Member
Registered: 2022-02-14
Posts: 3

Unable to push to the aur

hello, I recently tried to create an aur package, but after many problems I decided to "reset" the package by submitting a deletion request and recreating the package, it was a very stupid idea

the package is still working, I can yay -S it etc...

but  when I try to git push I get the following output

```
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 8 threads
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 1.51 KiB | 515.00 KiB/s, done.
Total 9 (delta 2), reused 0 (delta 0), pack-reused 0
remote: error: cannot overwrite package: mini-matrix-git
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/mini-matrix.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur.archlinux.org/mini-matrix.git'
```

I tried to git pull but
```
git pull origin master                                                                 
Enter passphrase for key '/home/skwal/.ssh/id_rsa': 
fatal: couldn't find remote ref master
```

Offline

#2 2022-02-14 21:10:42

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,361
Website

Re: Unable to push to the aur

You cannot remove the git history of a package once it is pushed. "Deletion" on the AUR just means that the package won't show up in searches.

Clone the existing git repo, apply your changes to that and then push to the AUR.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // 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

#3 2022-02-15 09:51:25

SkwalExe
Member
Registered: 2022-02-14
Posts: 3

Re: Unable to push to the aur

I can clone the repo but the git log is empty and I cant push

Offline

#4 2022-02-15 12:56:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,637

Re: Unable to push to the aur

Are we talking about mini-matrix or mini-matrix-git here?

Offline

#5 2022-02-15 13:31:28

SkwalExe
Member
Registered: 2022-02-14
Posts: 3

Re: Unable to push to the aur

Oh, nvm i figured it out, I was cloning mini-matrix and not mini-matrix-git

Offline

Board footer

Powered by FluxBB