ref: 5a4c5ba24704db87f226761ac690a97d2a9252a5
parent: e4e8086e947835584da12e641b2d7105dfc55998
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Nov 28 20:04:15 EST 2025
git/common.rc: fix paths with spaces
--- a/sys/lib/git/common.rc
+++ b/sys/lib/git/common.rc
@@ -86,7 +86,7 @@
theirs=/dev/null
if(mergeperm $ours $base $theirs){- mkdir -p `{basename -d $tmp}+ mkdir -p `$nl{basename -d $tmp}if(! merge3 $ours $base $theirs > $tmp)
echo merge needed: $out >[1=2]
mv $tmp $out
@@ -100,11 +100,11 @@
}}
fn gitup{- gitroot=`{git/conf -r >[2]/dev/null}+ gitroot=`$nl{git/conf -r >[2]/dev/null}if(~ $#gitroot 0)
die 'not a git repository'
gitfs=$gitroot/.git/fs
- gitrel=`{pwd | drop $gitroot | sed 's@^/@@'}+ gitrel=`$nl{pwd | drop $gitroot | sed 's@^/@@'}if(~ $#gitrel 0)
gitrel='.'
if(! cd $gitroot)
--
⑨