Skip to content

Commit

Permalink
fix: use git as an explicit external command (#33)
Browse files Browse the repository at this point in the history
Co-authored-by: melMass <[email protected]>
  • Loading branch information
amtoine and melMass authored Oct 24, 2023
1 parent f454d80 commit a37fdf1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nu-git-manager/mod.nu
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ export def "gm clone" [
let urls = get-fetch-push-urls $repository $fetch $push $ssh

if $bare {
git clone $urls.fetch $local_path --origin $remote --bare
^git clone $urls.fetch $local_path --origin $remote --bare
} else {
git clone $urls.fetch $local_path --origin $remote
^git clone $urls.fetch $local_path --origin $remote
}

git -C $local_path remote set-url $remote $urls.fetch
git -C $local_path remote set-url $remote --push $urls.push
^git -C $local_path remote set-url $remote $urls.fetch
^git -C $local_path remote set-url $remote --push $urls.push

let cache_file = get-repo-store-cache-path
check-cache-file $cache_file
Expand Down

0 comments on commit a37fdf1

Please sign in to comment.