From 464c1b04cdd5d8cb5c5f672eb0f0962c55362cc3 Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Mon, 26 May 2014 14:21:20 +1000 Subject: [PATCH] do_merge: use rev-parse instead of show-ref --hash the latter may return more than one result :-( --- do_merge | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/do_merge b/do_merge index 68f7f86..964c3b3 100755 --- a/do_merge +++ b/do_merge @@ -143,7 +143,7 @@ for h in $heads; do } tab="\t" [ $(echo "$tree" | wc -c) -le 8 ] && tab="\t\t" - printf "%s$tab%s\n" $tree $(git show-ref --hash "${h/\/*://}") >> $SHA1_FILE + printf "%s$tab%s\n" $tree $(git rev-parse "${h/\/*://}") >> $SHA1_FILE $no_build && continue $need_build || { # See if we need to build after merging this tree -- 2.39.5