Skip to contentSkip to conversation

Prevent '.git/merging: No such file or directory' error message

PATCH New Marcel Holtmann 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Prevent '.git/merging: No such file or directory' error message

Hi Petr,

the attached patch prevent the '.git/merging: No such file or directory' error message.

Regards

Marcel

cg-merge +1 -1
@@ -48,7 +48,7 @@ branch=$(commit-id "$branchname") || exi
 
 [ -s $_git/blocked ] && die "merge blocked: $(cat $_git/blocked)"
 
-if grep -q "$branch" $_git/merging; then
+if grep -sq "$branch" $_git/merging; then
 	echo "Branch already merged in the working tree." >&2
 	echo 0
 fi