You are not logged in.

#1 2017-03-14 13:58:58

Sori Ano
Member
Registered: 2017-02-01
Posts: 22

Unable to push: missing .SRCINFO

Hi, I'm getting the same error from here
When running git push:

$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using

    git remote add <name> <url>

and then push using the remote name

    git push <name>

git push label

$ git push plymouth-openrc-plugin
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream plymouth-openrc-plugin master

so then

$ git push --set-upstream plymouth-openrc-plugin master

Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 1.21 KiB | 0 bytes/s, done.
Total 5 (delta 0), reused 0 (delta 0)
remote: error: The following error occurred when parsing commit
remote: error: 9b983c7515880790b74cd496764d999c9cec28d1:
remote: error: missing .SRCINFO
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/plymouth-openrc-plugin.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur@aur.archlinux.org/plymouth-openrc-plugin.git'

Strange, I don't get why. The solution of the other issue didn't solved mine. I run all the commands listed here, but didn't worked.

Other outputs:

$ git log --pretty=oneline
9b983c7515880790b74cd496764d999c9cec28d1 Initial AUR release

Offline

#2 2017-03-14 14:08:38

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: Unable to push: missing .SRCINFO

Sori Ano wrote:

I run all the commands listed here, but didn't worked.

Really, all of them?  I doubt that.  That link gives you a choice of two approaches to solve this problem.  Which one did you use?  What were the exact commands you used and what was their output/result?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2017-03-14 14:29:29

Sori Ano
Member
Registered: 2017-02-01
Posts: 22

Re: Unable to push: missing .SRCINFO

Trilby wrote:
Sori Ano wrote:

I run all the commands listed here, but didn't worked.

Really, all of them?  I doubt that.  That link gives you a choice of two approaches to solve this problem.  Which one did you use?  What were the exact commands you used and what was their output/result?

Here are:

$ git clone ssh://aur@aur.archlinux.org/plymouth-openrc-plugin.git
git clone ssh://aur@aur.archlinux.org/plymouth-openrc-plugin.git
Cloning into 'plymouth-openrc-plugin'...
warning: You appear to have cloned an empty repository.

$ git remote add plymouth-openrc-plugin ssh://aur@aur.archlinux.org/plymouth-openrc-plugin.git

$ git fetch plymouth-openrc-plugin

$ makepkg --printsrcinfo > .SRCINFO

$ git add PKGBUILD .SRCINFO

$ git commit -m "Initial AUR release"

$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using

    git remote add <name> <url>

and then push using the remote name

    git push <name>

$ git push plymouth-openrc-plugin master
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 1.21 KiB | 0 bytes/s, done.
Total 5 (delta 0), reused 0 (delta 0)
remote: error: The following error occurred when parsing commit
remote: error: 9b983c7515880790b74cd496764d999c9cec28d1:
remote: error: missing .SRCINFO
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/plymouth-openrc-plugin.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur@aur.archlinux.org/plymouth-openrc-plugin.git'

$ git push plymouth-openrc-plugin
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream plymouth-openrc-plugin master

$ git push --set-upstream plymouth-openrc-plugin master
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 1.21 KiB | 0 bytes/s, done.
Total 5 (delta 0), reused 0 (delta 0)
remote: error: The following error occurred when parsing commit
remote: error: 9b983c7515880790b74cd496764d999c9cec28d1:
remote: error: missing .SRCINFO
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/plymouth-openrc-plugin.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur@aur.archlinux.org/plymouth-openrc-plugin.git'

But nothing. I didn't put some outputs because I already run those without problem, and re-run them will not help (I've already tried)

Offline

#4 2017-03-14 14:37:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: Unable to push: missing .SRCINFO

When you gave the link to the wiki I thought you were referring to the highlighted box right under the anchor you linked to that specifically addresses your problem:

wiki wrote:

Tip: If you initially forgot to commit the .SRCINFO and added it in a later commit, the AUR will still reject your pushes because the .SRCINFO must exist for every commit. To solve this problem you can use git rebase with the --root option or git filter-branch with the --tree-filter option.

But it seems you have not done either of those.  You should.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2017-03-14 15:03:30

Sori Ano
Member
Registered: 2017-02-01
Posts: 22

Re: Unable to push: missing .SRCINFO

Trilby wrote:

When you gave the link to the wiki I thought you were referring to the highlighted box right under the anchor you linked to that specifically addresses your problem:

wiki wrote:

Tip: If you initially forgot to commit the .SRCINFO and added it in a later commit, the AUR will still reject your pushes because the .SRCINFO must exist for every commit. To solve this problem you can use git rebase with the --root option or git filter-branch with the --tree-filter option.

But it seems you have not done either of those.  You should.

Yes, but didn't worked. Tried rebase and tree-filter

Offline

#6 2017-03-14 15:24:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: Unable to push: missing .SRCINFO

OK then, answer my previous question:

Trilby wrote:

What were the exact commands you used and what was their output/result?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB