git: 9front

Download patch

ref: 82f0e13313e706a759e7d0b53580764de52eceba
parent: e2d8479a029334d8bcd66be2d7cf1ed52abeca12
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 */*)
--