From a37fdf1dcff56c51021cbe00da32953999b8c1bf Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Tue, 24 Oct 2023 14:44:43 +0200 Subject: [PATCH] fix: use git as an explicit external command (#33) Co-authored-by: melMass --- nu-git-manager/mod.nu | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nu-git-manager/mod.nu b/nu-git-manager/mod.nu index 51f2e0a5..bdfa1f13 100644 --- a/nu-git-manager/mod.nu +++ b/nu-git-manager/mod.nu @@ -65,13 +65,13 @@ export def "gm clone" [ let urls = get-fetch-push-urls $repository $fetch $push $ssh if $bare { - git clone $urls.fetch $local_path --origin $remote --bare + ^git clone $urls.fetch $local_path --origin $remote --bare } else { - git clone $urls.fetch $local_path --origin $remote + ^git clone $urls.fetch $local_path --origin $remote } - git -C $local_path remote set-url $remote $urls.fetch - git -C $local_path remote set-url $remote --push $urls.push + ^git -C $local_path remote set-url $remote $urls.fetch + ^git -C $local_path remote set-url $remote --push $urls.push let cache_file = get-repo-store-cache-path check-cache-file $cache_file