Skip to content

Commit

Permalink
fix list concat (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine authored Dec 6, 2024
1 parent c406f20 commit 55e0c97
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 55e0c97

Please sign in to comment.