From 712d00a82a8217bb7fea22d9d572f000632fdcbb Mon Sep 17 00:00:00 2001 From: amtoine Date: Fri, 6 Dec 2024 10:05:36 +0100 Subject: [PATCH] fix list concat see: - https://github.com/nushell/nushell/pull/14344 --- pkgs/nu-git-manager/nu-git-manager/mod.nu | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/nu-git-manager/nu-git-manager/mod.nu b/pkgs/nu-git-manager/nu-git-manager/mod.nu index d67dcb3..f56f6d5 100644 --- a/pkgs/nu-git-manager/nu-git-manager/mod.nu +++ b/pkgs/nu-git-manager/nu-git-manager/mod.nu @@ -124,7 +124,7 @@ export def "gm clone" [ let urls = get-fetch-push-urls $repository ($fetch | default "") ($push | default "") $ssh - mut args = [$urls.fetch $local_path --origin $remote] + mut args: list = [$urls.fetch $local_path --origin $remote] if $depth != null { if ($depth < 1) { throw-error { @@ -136,14 +136,14 @@ export def "gm clone" [ } } - $args = ($args ++ --depth ++ $depth) + $args = ($args ++ [--depth] ++ [$depth]) if $bare { - $args = ($args ++ --bare) + $args = ($args ++ [--bare]) } } else { if $bare { - $args = ($args ++ --bare) + $args = ($args ++ [--bare]) } }