Re: Aur git - missing .SRCINFO hook declined to update refs/heads/master - help?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On June 4, 2018 12:58 PM, Bennett Piater <bennett@xxxxxxxxxxx> wrote:
> 
> Do you have an unpushed commit that may not pass muster, even if it is
> not the last?
> 
> If so, you could try squashing all unpushed commits together to one
> using git rebase.

On June 4, 2018 1:04 PM, Eli Schwartz via arch-general <arch-general@xxxxxxxxxxxxx> wrote:
> That's saying that in commit 93a539f81d7d0f001dd5522781ebeabf7cf73f9d
> 
> you had committed a .SRCINFO file which listed a LICENSE file, but you
> did not commit the LICENSE file itself.
> You've got corrupted history, adding a new commit with the LICENSE file
> does not fix the old commit. Use --amend if you need to fix up old commits.

If I read this thread correctly, your git history isn't corrupt in the sense that it would break git, but your git history is not conforming with AUR rules. To obey those, reading up about git rebase [0] is the way to go. 
Keep in mind that you have to give git rebase a commit behind the one you intend to edit, eg. git rebase -i 93a539f~1 so you can edit (using git add and git commit --amend) the commit in question so it becomes acceptable. One way to go would be to remove LICENSE from the .SRCINFO for 93a539f so it becomes consistent. You can read about the details in the footnote.

cheers!
mar77i

[0] https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History



​Sent with ProtonMail Secure Email.​




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux