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
Git PlainClone is throwing reference delta not found error #495
Comments
I can reproduce your issue with the latest master, my PR (#485 ) fixes it: package main
import (
"os"
"github.com/go-git/go-git/v5"
)
func main() {
_, err := git.PlainClone("temp/octopus", true, &git.CloneOptions{
SingleBranch: false,
URL: "https://github.com/OctopusDeploy/install-octopus-cli-action",
Progress: os.Stdout,
})
if err != nil {
println(err.Error())
}
}
|
Thanks @ZauberNerd, cross checked and yeah your PR fix is solving the issue. Hopefully, your PR will be merged soon and will get a new release of go-git. |
I ran into the same issue and @ZauberNerd 's PR solved it. Thanks! But, why is it taking so long for PRs to be merged? |
Hey folks, I am running to the same issue here! |
Fixes "reference delta not found" error. Based on go-git/go-git#485 see go-git/go-git#495 (comment) Signed-off-by: Or Shoval <oshoval@redhat.com>
…to match dependencies version This tries to fix both issues from last commit: newer dependencies version no longer could build without also updating kotlin version, and Cirrus CI failed to clone the repo due to an obscure bug in their git implementation (go-git/go-git#495). Trying to reduce repo size by removing libraries from local maven repository at /libs, hoping it will fix the issue.
Nice one @AriehSchneier. Closing as per #485. |
I am trying to clone repo:
https://github.com/OctopusDeploy/install-octopus-cli-action
And seeing the error
reference delta not found
git.PlainClone is failing
Output:
git.Clone is working fine
Output:
The text was updated successfully, but these errors were encountered: