Skip to content

Commit

Permalink
Add --rebase option to git pull commands
Browse files Browse the repository at this point in the history
  • Loading branch information
bwRavencl committed Feb 1, 2025
1 parent ee9d81f commit 895f233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions InstallControllerBuddy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ function install_dcs_integration() {
rm -rf "$cb_dcs_integration_dir"
else
log 'Pulling ControllerBuddy-DCS-Integration repository...'
git -C "$cb_dcs_integration_dir" pull origin master
git -C "$cb_dcs_integration_dir" pull origin master --rebase
check_retval 'Error: Failed to pull ControllerBuddy-DCS-Integration repository'
fi
elif [ "$uninstall" != true ]
Expand Down Expand Up @@ -735,7 +735,7 @@ else
log 'Pulling ControllerBuddy-Profiles repository...'
git -C "$cb_profiles_dir" fetch origin &&
git -C "$cb_profiles_dir" checkout "$cb_profiles_branch" &&
git -C "$cb_profiles_dir" pull origin "$cb_profiles_branch"
git -C "$cb_profiles_dir" pull origin "$cb_profiles_branch" --rebase
check_retval 'Error: Failed to pull ControllerBuddy-Profiles repository'
else
log 'Cloning ControllerBuddy-Profiles repository...'
Expand Down

0 comments on commit 895f233

Please sign in to comment.