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:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user