summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2022-11-24 03:11:14 +0000
committerOri Bernstein <ori@eigenstate.org>2022-11-24 03:11:14 +0000
commit2380532ff58c2afd666bc9c40dbb7a65c77c204c (patch)
treec99b203471149946d6544740331afc1636d50daa
parentfc55d674565f65401a9fc89c90a3769d7c8cb4ae (diff)
sysupdate: only pull on 'front' branch
prevent accidental merges and clobbers of work in progress
-rwxr-xr-xrc/bin/sysupdate5
1 files changed, 4 insertions, 1 deletions
diff --git a/rc/bin/sysupdate b/rc/bin/sysupdate
index 2406b5607..4cf9e63e2 100755
--- a/rc/bin/sysupdate
+++ b/rc/bin/sysupdate
@@ -5,4 +5,7 @@ rfork en
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