peachcloud / peach-package-builder

Python scripts for building peach microservices as packages for Freight repository.
1 stars 0 forks source link

Use more reliable method of getting latest code from origin/main during package building #17

Closed mhfowler closed 3 years ago

mhfowler commented 3 years ago

Based on this SO post https://stackoverflow.com/questions/1125968/how-do-i-force-git-pull-to-overwrite-local-files, this PR changes to using git reset --hard in order to get the latest code from the default branch for packages it is building (when the -d flag is passed).

This is a more reliable way to make sure you're building exactly the code you see in github.

Merging this as its a small change.