Re: [PATCH 5/5] -D <depth> option to recurse into merged branches
- From
- Eric Wong <normalperson@yhbt.net>
- Date
- Nov 14, 2005, 02:01 UTC
- Message-ID
- <20051114020134.GC10998@mail.yhbt.net>
- In-Reply-To
- <20051112093208.GF16218@Muzzle>
One small fix on top of this one:
Don't check for parents if the only revision we have is a base-0 and @psets is empty.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
---
git-archimport.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
applies-to: 8a7e18ff0884cae74a1127d5c96577a85acca3f4 5f2896558284724bcc87eb64daa0933b544ec20d
diff --git a/git-archimport.perl b/git-archimport.perl index a0ea016..b624ba6 100755 --- a/git-archimport.perl +++ b/git-archimport.perl @@ -186,7 +186,7 @@ sub do_abrowse { if (%ps && !exists $psets{ $ps{id} }) { my %temp = %ps; # break references - if ($psets[$#psets]{branch} eq $ps{branch}) { + if (@psets && $psets[$#psets]{branch} eq $ps{branch}) { $temp{parent_id} = $psets[$#psets]{id}; } push (@psets, \%temp); --- 0.99.9.GIT