chiark / gitweb /
Don't throw away already started base on resumed create.
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 1 Mar 2009 19:55:40 +0000 (20:55 +0100)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 1 Mar 2009 19:55:40 +0000 (20:55 +0100)
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 <u.kleine-koenig@pengutronix.de>
tg-create.sh

index 6e8490742282f86f4bebf1908b0e0504e6753e6e..2edd5379d54c9cc533a0904dafc51b6f566e728c 100644 (file)
@@ -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#* }"