ref: 3d047ddf03b9f977073427db7de98192ca0af351
parent: 929b0ff087ff70c9deadb65fb1c54af91b814d9f
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Apr 19 10:34:48 EDT 2022
git/common.rc: create required directories we forgot a couple of directories when branching.
--- a/sys/lib/git/common.rc
+++ b/sys/lib/git/common.rc
@@ -73,6 +73,7 @@
base=/dev/null
if(! test -f $theirs)
theirs=/dev/null
+ mkdir -p `{basename -d $tmp}
if(! ape/diff3 -3 -m $ours $base $theirs > $tmp)
echo merge needed: $out >[1=2]
@@ -94,10 +95,10 @@
gitrel=`{pwd | drop $gitroot | sed 's@^/@@'}
if(~ $#gitrel 0)
gitrel='.'
- cd $gitroot
+ if(! cd $gitroot)
+ die cd $gitroot: no repo there
startfs=()
- if(! test -d $gitfs)
- mkdir -p $gitfs
+ mkdir -p $gitfs
if(! test -e $gitfs/ctl)
startfs=true
if(! grep -s '^repo '$gitroot'$' $gitfs/ctl >[2]/dev/null)