fix(repo): README lookup like Gitea, clearer branch/org errors, clone-after-create report, mirror interval 0 and search sort (follow gh)

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-18 20:03:55 +02:00
1 parent 8305a89531
commit aa181a2b5c
16 files changed
+211 -37

No files matched your search

+8 -1
View File
@@ -147,7 +147,14 @@ $ tea repo create project --source . --push`,
target.Repo = item.FullName
switch {
case clone:
_, err = a.cloneRepository(cmd, target, item, cloneOptions{upstream: "upstream"})
// Record the new repository first so a failed clone does not hide that it exists.
if err := a.created(cmd, item, item.URL); err != nil {
return err
}
if _, err := a.cloneRepository(cmd, target, item, cloneOptions{upstream: "upstream"}); err != nil {
return fmt.Errorf("created %s, but could not clone it: %w", item.FullName, err)
}
return nil
case localSource != "":
err = a.publishRepository(cmd, target, item, localSource, remote, push)
}