Skip to contentSkip to conversation

dim: Handle / in branch names in rebuild-tip

PATCH New Daniel Vetter 1 participant 1 message Feb 27, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dim: Handle / in branch names in rebuild-tip

My normalization hack fell over a topic branch :(

---
 dim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
dim +1 -1
index 457bf93d8a11..6d3b9734b348 100755
@@ -502,7 +502,7 @@ function dim_rebuild_tip
 			git merge --rerere-autoupdate --no-commit $sha1 >& /dev/null || true
 			# normalize conflict markers
 			if git grep -l '^>>>>>>> ' &> /dev/null ; then
-				git grep -l '^>>>>>>> ' | xargs sed -e "s/^>>>>>>> .*$/>>>>>>> $repo\/$branch/" -i
+				git grep -l '^>>>>>>> ' | xargs sed -e "s|^>>>>>>> .*$|>>>>>>> $repo\/$branch|" -i
 			fi
 
 			if [ -f $fixup_file ] ; then
Signature · 6 lines
2.11.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx