Skip to content

Commit 9d58947

Browse files
bashandboneCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent c512e26 commit 9d58947

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/git_manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ impl GitManager {
420420
ignore: ignore.clone(),
421421
update: update.clone(),
422422
fetch_recurse: fetch_recurse.clone(),
423-
active: Some(true),
423+
active: Some(!no_init),
424424
shallow,
425425
no_init: Some(no_init),
426426
sparse_paths: None,
@@ -458,7 +458,7 @@ impl GitManager {
458458
ignore,
459459
update,
460460
fetch_recurse,
461-
active: Some(true),
461+
active: Some(!no_init),
462462
shallow,
463463
no_init: Some(no_init),
464464
sparse_paths: None, // stored separately via configure_submodule_post_creation

0 commit comments

Comments
 (0)