1
0

pkgs/clerie-update-nixfiles: use fast-forward as a softer approach to update master (so nothing gets lost)

This commit is contained in:
clerie 2024-03-19 18:15:47 +01:00
parent 9bc4ba3b77
commit 31c2bf2ede

View File

@ -45,7 +45,13 @@ echo "[!] Checkout master"
xgit checkout master xgit checkout master
echo "[!] Update master" echo "[!] Update master"
xgit pull origin master set +e
if ! xgit merge --ff-only origin/master; then
echo "[!] Merging failed"
echo "[!] Please clean up master branch and try again"
exit 1
fi
set -e
echo "[!] Fetch git commit of last hydra run" echo "[!] Fetch git commit of last hydra run"
echo "[!] Checking https://hydra.clerie.de/jobset/nixfiles/nixfiles-updated-inputs/latest-eval" echo "[!] Checking https://hydra.clerie.de/jobset/nixfiles/nixfiles-updated-inputs/latest-eval"