From 23033d034d224b3ce36f1741ea221ad3937cd8f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Sun, 1 Mar 2009 20:55:40 +0100 Subject: [PATCH 1/1] Don't throw away already started base on resumed create. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The problem was that after a failure to create the patch base the resuming tg create did reset HEAD to the next tree to merge in which is the right thing for a pristine create. This addresses Debian Bug #513018 and is based on a patch by the bug reporter Gábor Braun. A recipe triggering the bug is part of the report that can be found at http://bugs.debian.org/513018. Signed-off-by: Uwe Kleine-König --- tg-create.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tg-create.sh b/tg-create.sh index 6e84907..2edd537 100644 --- a/tg-create.sh +++ b/tg-create.sh @@ -78,9 +78,9 @@ done rm -f "$git_dir/top-name" "$git_dir/top-deps" "$git_dir/top-merge" -## Create base +## Find starting commit to create the base -if [ -n "$merge" ]; then +if [ -n "$merge" -a -z "$restarted" ]; then # Unshift the first item from the to-merge list branch="${merge%% *}" merge="${merge#* }" -- 2.30.2