Skip to content

Commit

Permalink
DEBUG: see if the issue comes from clone or remote
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Oct 30, 2023
1 parent cc8c03a commit 02b7f1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nu-git-manager/mod.nu
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,22 @@ export def "gm clone" [
(metadata $depth).span
)}

log debug "cloning the repo"
if $bare {
^git clone $urls.fetch $local_path --origin $remote --depth $depth --bare
} else {
^git clone $urls.fetch $local_path --origin $remote --depth $depth
}
} else {
log debug "cloning the repo"
if $bare {
^git clone $urls.fetch $local_path --origin $remote --bare
} else {
^git clone $urls.fetch $local_path --origin $remote
}
}

log debug "setting up the remote"
^git -C $local_path remote set-url $remote $urls.fetch
^git -C $local_path remote set-url $remote --push $urls.push

Expand Down

0 comments on commit 02b7f1d

Please sign in to comment.