pkgs/clerie-update-nixfiles: use fast-forward as a softer approach to update master (so nothing gets lost)
This commit is contained in:
parent
9bc4ba3b77
commit
31c2bf2ede
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user