shithub: riscv

Download patch

ref: 2380532ff58c2afd666bc9c40dbb7a65c77c204c
parent: fc55d674565f65401a9fc89c90a3769d7c8cb4ae
author: Ori Bernstein <[email protected]>
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