Skip to contentSkip to conversation

Trivial sed fix up in t/t6001

PATCH New Mark Allen 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore

Mark Allen

author
#0 lore raw

PATCH 1/1 Trivial sed fix up in t/t6001

This trivial patch fixes up the sed expression used in t/t6001. It removes the semi-colon seperator and replaces it with white space which makes the BSD sed(1) much happier.

t/t6001-rev-list-merge-order.sh +2 -1
@@ -40,7 +40,8 @@ save_tag()
 	[ -n "$_tag" ] || error "usage: save_tag tag commit-args ..."
 	shift 1
     	"$@" >.git/refs/tags/$_tag
-    	sed_script="s/$(tag $_tag)/$_tag/g${sed_script+;}$sed_script"
+    	sed_script="s/$(tag $_tag)/$_tag/g
+$sed_script"
 }
 
 # Replace unhelpful sha1 hashses with their symbolic equivalents