mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-17 00:36:14 +01:00
Fix bug
This commit is contained in:
parent
d1e8eac41e
commit
f77b5e9f4e
@ -407,6 +407,7 @@ func ParseCompareInfo(ctx *context.Context) *common.CompareInfo {
|
|||||||
ctx.ServerError("RepositoryFromRequestContextOrOpen", err)
|
ctx.ServerError("RepositoryFromRequestContextOrOpen", err)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
// if it's not the same git repo, the HeadGitRepo should be closed out of the function
|
||||||
} else {
|
} else {
|
||||||
ctx.NotFound(nil)
|
ctx.NotFound(nil)
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user