X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=git-debrebase;h=8c77dbccdcc1bc9c713983a30d33ba5cb2b730f4;hp=8a431110faad1fc0b47aee9ec9220aba48262612;hb=ece8834f77855aab622f427ffc858e05917ca77d;hpb=a75a91f40d31452a0c02761540416e5957f91d35 diff --git a/git-debrebase b/git-debrebase index 8a431110..8c77dbcc 100755 --- a/git-debrebase +++ b/git-debrebase @@ -831,10 +831,13 @@ sub cmd_new_upstream_v0 () { # now we need to investigate the branch this generates the # laundered version but we don't switch to it yet my $old_head = get_head(); - my ($old_laundered_tip,$old_bw) = walk $old_head; + my ($old_laundered_tip,$old_bw,$old_upstream_update) = walk $old_head; my $old_bw_cl = classify $old_bw; - my $old_upstream = parsecommit $old_bw_cl->{OrigParents}[0]{CommitId}; + my $old_upstream_update_cl = classify $old_upstream_update; + confess unless $old_upstream_update_cl->{OrigParents}; + my $old_upstream = parsecommit + $old_upstream_update_cl->{OrigParents}[0]{CommitId}; my $problems = 0; my $problem = sub {