From fba275dc93319ffa31ecebe015f8cda671fcf0e5 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 31 Mar 2017 21:08:30 -0700 Subject: contrib/git-resurrect.sh: do not write \t for HT in sed scripts Just like we did in 0d1d6e50 ("t/t7003: replace \t with literal tab in sed expression", 2010-08-12), avoid writing "\t" for HT in sed scripts, which is not portable. Signed-off-by: Junio C Hamano --- contrib/git-resurrect.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/git-resurrect.sh') diff --git a/contrib/git-resurrect.sh b/contrib/git-resurrect.sh index c364dda696..3b78ffd079 100755 --- a/contrib/git-resurrect.sh +++ b/contrib/git-resurrect.sh @@ -24,13 +24,13 @@ n,dry-run don't recreate the branch" . git-sh-setup search_reflog () { - sed -ne 's~^\([^ ]*\) .*\tcheckout: moving from '"$1"' .*~\1~p' \ + sed -ne 's~^\([^ ]*\) .* checkout: moving from '"$1"' .*~\1~p' \ < "$GIT_DIR"/logs/HEAD } search_reflog_merges () { git rev-parse $( - sed -ne 's~^[^ ]* \([^ ]*\) .*\tmerge '"$1"':.*~\1^2~p' \ + sed -ne 's~^[^ ]* \([^ ]*\) .* merge '"$1"':.*~\1^2~p' \ < "$GIT_DIR"/logs/HEAD ) } -- cgit v1.2.3