Skip to content

Commit

Permalink
Use git reset instead of git pull for branch update (#236)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Edgar <[email protected]>
  • Loading branch information
MikeEdgar authored Dec 6, 2022
1 parent 2a190bb commit 6178aea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kas-fleet-manager/deploy-kas-fleet-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ clone_kasfleetmanager_code_repository() {
${GIT} fetch origin && \
${GIT} checkout ${KAS_FLEET_MANAGER_GIT_REF} && \
${GIT} symbolic-ref -q HEAD && \
${GIT} pull --ff-only || echo "Skipping 'pull' for detached HEAD")
${GIT} reset --hard origin/${KAS_FLEET_MANAGER_GIT_REF} || \
echo "Skipping 'pull' for detached HEAD")
else
echo "KAS Fleet Manager code directory is current, not refreshing"
fi
Expand Down

0 comments on commit 6178aea

Please sign in to comment.