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]) } }