mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 19:11:25 +01:00
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:
16 files changed
+211
-37
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user