mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-27 03:21:25 +01:00
fix: page hint for comment list, keep SSH settings on re-login, hard-link-free downloads, stable OWNER/REPO#N instance (follow gh)
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
11 files changed
+154
-10
No files matched your search
@@ -209,6 +209,11 @@ func (a *application) repositorySource(ctx context.Context, t *target, s setting
|
||||
if err := a.agreesWithRepoFlag(req, s.Hosts.Hosts); err != nil {
|
||||
return "", err
|
||||
}
|
||||
if a.options.repo != "" && !a.namesInstance(req.repo) && a.namesInstance(a.options.repo) {
|
||||
// The argument agrees with --repo and only lacks its instance.
|
||||
t.RepoSource = "--repo"
|
||||
return a.options.repo, nil
|
||||
}
|
||||
t.RepoSource = req.repoSource
|
||||
return req.repo, nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user