shithub: riscv

Download patch

ref: 44a2f89a03c370940fa0f4747c2357c73984d653
parent: bf7e8777f391caa82705a0b64709a95672d2632c
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)