]> git.armaanb.net Git - bin.git/commitdiff
Web-update-server: fix git pull command, set -e
authorArmaan Bhojwani <me@armaanb.net>
Mon, 18 Jan 2021 19:43:37 +0000 (14:43 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Tue, 19 Jan 2021 14:11:07 +0000 (09:11 -0500)
web-update-server

index 67d0ea4c884876cb9fc2e04a6e9eeb891a4f1d1f..58fa98e452c4a0395ebd81d91e7c951c1c4c5ed5 100755 (executable)
@@ -1,10 +1,12 @@
 #!/usr/bin/env bash
 # Executed over SSH on builds.sr.ht for my websites
 
+set -e
+
 gitrun() {
   git -C $dir reset --hard
   git -C $dir clean -fxd
-  git -C $dir pull --rebase
+  git -C $dir pull origin main --ff-only 
 }
 
 if [[ $1 == "gemini" ]]; then