Skip to content

Commit

Permalink
Don't execute CloneV1/CloneV2 unless Repository/RepositoryV2 are non-…
Browse files Browse the repository at this point in the history
…null (#168)

* don't execute CloneV1/CloneV2 unless Repository/RepositoryV2 are non-null
  • Loading branch information
directhex authored Jul 18, 2024
1 parent 6285c31 commit a762382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index/index.proj
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
</ItemGroup>
</Target>

<Target Name="CloneV1" DependsOnTargets="CloneRepository;CheckoutSources;ResolveHashV1"/>
<Target Name="CloneV1" DependsOnTargets="CloneRepository;CheckoutSources;ResolveHashV1" Condition="'@(Repository)' != ''"/>

<Target Name="DownloadRepositoryV2" Outputs="%(RepositoryV2.Identity)">
<DownloadStage1Index
Expand All @@ -115,7 +115,7 @@
</ItemGroup>
</Target>

<Target Name="CloneV2" DependsOnTargets="DownloadRepositoryV2;ResolveHashV2"/>
<Target Name="CloneV2" DependsOnTargets="DownloadRepositoryV2;ResolveHashV2" Condition="'@(RepositoryV2)' != ''"/>

<Target Name="Clone" DependsOnTargets="CloneV1;CloneV2">
</Target>
Expand Down

0 comments on commit a762382

Please sign in to comment.