git: 9front

Download patch

ref: 9ea6e43cf3ee24fc942221a6e48f32c7f08ec868
parent: 6918d203336a99d3e3814c1f2f4236c2c3a132b0
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Aug 25 15:31:27 EDT 2023

git/commit: fix sed invocation: our '^' operator has a quirk when used with 'g'

--- a/sys/src/cmd/git/commit
+++ b/sys/src/cmd/git/commit
@@ -121,7 +121,7 @@
 
 files=()
 if(test -f .git/index9/merge-parents)
-	files=`$nl{git/query -c `{cat .git/index9/merge-parents} | sed 's/^..//g'}
+	files=`$nl{git/query -c `{cat .git/index9/merge-parents} | sed 's/^..//'}
 if(! ~ $#* 0)
 	files=($files `$nl{git/walk -c `$nl{cleanname -d $gitrel $*}})
 if(~ $status '' || ~ $#files 0 && ! test -f .git/index9/merge-parents && ~ $#revise 0)
--