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 9b7c388 commit 4a18cf5Copy full SHA for 4a18cf5
osc/commands/fork.py
@@ -168,6 +168,11 @@ def run(self, args):
168
fork_owner = e.fork_owner
169
fork_repo = e.fork_repo
170
print(f" * Fork already exists: {fork_owner}/{fork_repo}")
171
+ except gitea_api.RepoExists as e:
172
+ print(f"{tty.colorize('ERROR', 'red,bold')}: Repo already exists '{e.owner}/{e.repo}' and is not a fork of '{owner}/{repo}'")
173
+ print(" * Consider forking with an alternative repo name")
174
+ print(f" * You may also want to delete '{e.owner}/{e.repo}' and retry")
175
+ sys.exit(1)
176
177
# XXX: implicit branch name should be forbidden; assumptions are bad
178
fork_scmsync = urllib.parse.urlunparse(
0 commit comments