-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
versiongetter: use a permissive AlternatesFS with git-go #3852
Conversation
versiongetter does not work in Arch Linux's package build environment, because `repo.Log(&git.LogOptions{From: head.Hash()})` somehow returns `plumbing.ErrObjectNotFound`. It might take some time before I can find out the root cause and submit a fix, so here's the preliminary change that wraps errors with additional context.
Hello, the error message you've reported is usually triggered when repositories are pulled with
When repositories are cloned in this way, the tag list is not available:
(this returns an empty list) and the server is unable to get its tag. In my opinion there are two ways to solve the issue:
I like the first approach better - try looking around. |
AFAIK this is not possible. The Mirror repo config ( [core]
repositoryformatversion = 0
filemode = true
bare = true
[remote "origin"]
url = https://github.com/bluenviron/mediamtx.git
fetch = +refs/*:refs/*
mirror = true
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = /home/database64128/repos/aur/mediamtx/mediamtx
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "main"]
remote = origin
merge = refs/heads/main Inside the
|
The
|
Likely the same issue as mentioned in go-git/go-git#1125 and go-git/go-git#1002. I'll update this PR once I get things working. |
50d2702
to
4ac00a0
Compare
Hi, I have pushed the fix to the branch and updated the PR title. It's now ready for review. |
I tested it on both Linux and Windows and it seems to be working. This has been merged. |
This issue is mentioned in release v1.9.3 🚀 |
versiongetter does not work in Arch Linux's package build environment, because
repo.Log(&git.LogOptions{From: head.Hash()})
somehow returnsplumbing.ErrObjectNotFound
.It might take some time before I can find out the root cause and submit a fix, so here's the preliminary change that wraps errors with additional context.
Update: See the added comment in code.
Fixes #3409.