git: plan9front

Download patch

ref: 2f685dd96be9dcf3fe9bbab306ae5b9e07cfd86d
parent: 473ebd0f9e117f3c7e1d5504b8b97cedee580ccd
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Dec 14 00:32:05 EST 2024

git/branch: stop emitting incorrect 'merge failed' messages

--- a/sys/src/cmd/git/branch
+++ b/sys/src/cmd/git/branch
@@ -114,8 +114,9 @@
 for(ours in $dirtypaths){
 	common=$gitfs/object/$orig/tree/$ours
 	theirs=$gitfs/object/$base/tree/$ours
-	merge1 $ours $ours $common $theirs || st=$status
-	if(! ~ $#st 1)
+	merge1 $ours $ours $common $theirs
+	st=$status
+	if(! ~ $st '')
 		>[1=2] echo merge failed $ours: $st
 }
 if(~ $new */*)
--