Skip to content

Commit

Permalink
fix list concat
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Dec 6, 2024
1 parent 6cdfe07 commit 712d00a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/nu-git-manager/nu-git-manager/mod.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> = [$urls.fetch $local_path --origin $remote]
if $depth != null {
if ($depth < 1) {
throw-error {
Expand All @@ -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])
}
}

Expand Down

0 comments on commit 712d00a

Please sign in to comment.