-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subtree history including irrelevant commit #28
Comments
I've been playing around with |
When a git subtree gets pushed, there's really two things to look at. Under the hood:
At the remote end, the remote receives:
The main thing that matters is the requested ref updates. There really should be only one, that being the printed sha1 -> master. The objects collection that gets transferred is down to however git negotiates the set of objects that matches some rough intersection of criteria such as fast, cheap to compute, and small network impact. This negotiation is different depending on whether you push via the filesystem (copying a file is really cheap) or at the other end of an ssh/https connection (size is important). What this means is that running it manually may show you a lot of objects available in the pushed location, but the actual refs "shouldn't" change or have anything extra. The AUR server-side receiving hook is based on a pygit2 commit tree walker that is installed as a githooks(5) "update" hook. The only information it receives is the ref name, the old and new commit sha1s, and the walker processes the new commit sha1 and verifies that every ancestor fulfills the criteria (e.g. has PKGBUILD, .SRCINFO, latter is well formed) and administrative stuff like denying force pushes. So what it comes down to is this:
Why is |
Somehow for the last few weeks (since about the time https://gitlab.archlinux.org/archlinux/devtools/-/commit/be5f54c95cbbcf46598e23aa456075cbb26806c0 would have landed in devtools, which seems to be similar but orthagonal to the AUR hosting or aurpublish tooling) AUR I've been having trouble with most (but strangely not quite all) of the packages in my aurpublish managed repository to the AUR. Most of them fail to push being blocked by the hook. They seem to be trying to push the initial commit to my repo which is just the readme, nothing relevant to the subtrees for each package.
The text was updated successfully, but these errors were encountered: