Skip to content

Commit

Permalink
[Fix] specify 'origin' remote name with git clone ... installs
Browse files Browse the repository at this point in the history
`git` may be configured locally to use a non-'origin' default remote name.
So, specify 'origin' as the remote name when cloning to get the expected setup.
  • Loading branch information
rivy committed Apr 30, 2024
1 parent 811c039 commit 1a45a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ install_nvm_from_git() {
}
else
# Cloning repo
command git clone "$(nvm_source)" --depth=1 "${INSTALL_DIR}" || {
command git clone "$(nvm_source)" --depth=1 --origin=origin "${INSTALL_DIR}" || {
nvm_echo >&2 'Failed to clone nvm repo. Please report this!'
exit 2
}
Expand Down

0 comments on commit 1a45a1d

Please sign in to comment.