Skip to content

Commit 7ae7731

Browse files
committed
Change gitea_api.Repo.clone() to stop borrowing objects when 'reference' or 'reference_if_able' is used
1 parent a151711 commit 7ae7731

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

osc/gitea_api/repo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ def clone(
179179
if reference_if_able:
180180
cmd += ["--reference-if-able", reference_if_able]
181181

182+
if reference or reference_if_able:
183+
# we want to make the newly cloned repo to be independent, this stops borrowing the objects
184+
cmd += ["--dissociate"]
185+
182186
if quiet:
183187
cmd += ["--quiet"]
184188

0 commit comments

Comments
 (0)