Skip to content

Commit

Permalink
fix: use config for remote URL
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev authored Sep 6, 2023
1 parent c6331fa commit 1b791ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/decomposer/decomposer-install
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ install_library() {

# use the origin for master as the default origin
default_remote="$(git config --get branch.master.remote)"
if git remote get-url "$default_remote" | grep -q "${url}"; then
if git config --get "remote${default_remote}.url" | grep -q "${url}"; then
printf -v "${status_text_variable}" 'remote URL has changed'
git remote set-url "$default_remote" "${url}"
fi
Expand Down

0 comments on commit 1b791ee

Please sign in to comment.