We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31c0fc6 commit 5c589b7Copy full SHA for 5c589b7
modules/context/repo.go
@@ -576,6 +576,10 @@ func RepoAssignment(ctx *Context) (cancel context.CancelFunc) {
576
return
577
}
578
579
+ if ctx.Repo.GitRepo != nil {
580
+ log.Error("CodebergDebug: GitRepo is not nil, this should never happen!")
581
+ ctx.Repo.GitRepo.Close()
582
+ }
583
gitRepo, err := git.OpenRepositoryCtx(ctx, repo_model.RepoPath(userName, repoName))
584
if err != nil {
585
if strings.Contains(err.Error(), "repository does not exist") || strings.Contains(err.Error(), "no such file or directory") {
0 commit comments