ref: 1113d194d2e6badaad6c0a9ce091a3b0878afc5b
parent: 11f94dab2e976b6e7a032048f482656621fe892f
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Nov 23 22:11:14 EST 2022
sysupdate: only pull on 'front' branch prevent accidental merges and clobbers of work in progress
--- a/rc/bin/sysupdate
+++ b/rc/bin/sysupdate
@@ -5,4 +5,7 @@
cd /
if(! test -d .git)
bind -ac /dist/plan9front /
-git/pull -u gits://git.9front.org/plan9front/plan9front
+if(! ~ `{git/branch} heads/front)
+ >[1=2] echo sysupdate: must be on "front" branch to pull
+if not
+ git/pull -u gits://git.9front.org/plan9front/plan9front
--
⑨