You are not logged in.
Hello,
When I git push my repo to the AUR, here is the output:
Enumerating objects: 16, done.
Counting objects: 100% (16/16), done.
Delta compression using up to 8 threads
Compressing objects: 100% (13/13), done.
Writing objects: 100% (13/13), 2.86 KiB | 2.86 MiB/s, done.
Total 13 (delta 3), reused 0 (delta 0), pack-reused 0 (from 0)
remote: error: The following error occurred when parsing commit
remote: error: ad5538f283f4265341662ac4d1bbe5ac54c37e72:
remote: error: the repository must not contain subdirectories
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/ebsl.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur.archlinux.org/ebsl.git'Here is the output of git ls-files:
.SRCINFO
PKGBUILDIn a previous commit, I added a directory and committed it, but I quickly realized my mistake and git rm'ed it multiple times and committed it. I still encounter this problem.
A git show of the commit reveals that files (from the directory!) are added. I don't know how this can be at all, as I committed the removal.
Any help is appreciated.
Last edited by aa.pokras (2025-12-30 08:18:36)
Offline
You need to get rid of the offending commit. You can use `git rebase -i HEAD~2` and follow the help to merge commits.
Offline
Since the commit, I've changed PKGBUILD. Should I untrack it then rebase? Make a copy?
Last edited by aa.pokras (2025-12-30 22:40:36)
Offline
Since the commit, I've changed PKGBUILD. Should I untrack it then rebase? Make a copy?
You need to `git rm` what was added in the commit it was added. Removing it later does not work as there will still be the commits with it in. If you remove it then rebase to remove it earlier that will replace the later removal.
Last edited by loqs (2025-12-31 00:11:47)
Offline
Thank you! It worked!
Offline