From fd3ab99fa9020ff049650df79b33fb4a0f7fc489 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Tue, 19 Apr 2022 14:34:48 +0000 Subject: [PATCH] git/common.rc: create required directories we forgot a couple of directories when branching. --- sys/lib/git/common.rc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/lib/git/common.rc b/sys/lib/git/common.rc index 653d6bfb1..320439ab0 100644 --- a/sys/lib/git/common.rc +++ b/sys/lib/git/common.rc @@ -73,6 +73,7 @@ fn merge1 {@{ 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 @@ fn gitup{ 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)