From 1817dc7945fd4fb03362c8f7f5d7ad74c26254ec Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Thu, 7 Jun 2018 07:39:07 +1000 Subject: [PATCH] do_merge: don't reset the branch stuff before checking for skipping --- do_merge | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/do_merge b/do_merge index 5aa414a..d1c52e7 100755 --- a/do_merge +++ b/do_merge @@ -98,11 +98,6 @@ need_build=false for h in $heads; do tree=${h%%/*} - [ "$tree" = "branch" ] && { - git branch -f "${h#branch/}" - continue - } - [ -n "$start_from" ] && { if [ "$tree" = "$start_from" ]; then start_from="" @@ -111,6 +106,11 @@ for h in $heads; do fi } + [ "$tree" = "branch" ] && { + git branch -f "${h#branch/}" + continue + } + hlog=$(git log -1 --oneline "${h/\/*://}") 2>/dev/null old_head=$(git rev-parse HEAD) [ -f "../pre-merge/$tree" ] && { -- 2.39.2