1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-11-26 22:49:49 +01:00

Change gitea_api.Repo.clone() to stop borrowing objects when 'reference' or 'reference_if_able' is used

This commit is contained in:
2025-10-24 10:01:11 +02:00
parent a151711c03
commit 7ae7731963

View File

@@ -179,6 +179,10 @@ class Repo(GiteaModel):
if reference_if_able:
cmd += ["--reference-if-able", reference_if_able]
if reference or reference_if_able:
# we want to make the newly cloned repo to be independent, this stops borrowing the objects
cmd += ["--dissociate"]
if quiet:
cmd += ["--quiet"]