Skip to content

Commit 9eec47c

Browse files
committed
cmd/git(fix[Git.clone]): Fix reference_if_able flag name
why: The parameter was emitting --reference instead of --reference-if-able, which has different semantics (--reference fails if local repo is missing, --reference-if-able silently skips). what: - Change ["--reference", reference_if_able] to ["--reference-if-able", ...]
1 parent 7644c2b commit 9eec47c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libvcs/cmd/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def clone(
371371
if reference is not None:
372372
local_flags.extend(["--reference", reference])
373373
if reference_if_able is not None:
374-
local_flags.extend(["--reference", reference_if_able])
374+
local_flags.extend(["--reference-if-able", reference_if_able])
375375
if server_option is not None:
376376
local_flags.append(f"--server-option={server_option}")
377377
if jobs is not None:

0 commit comments

Comments
 (0)