Project.pm: support no alternates setup
commit72c4147c6c379a570eee2a0468e915abfbe61583
authorKyle J. McKay <mackyle@gmail.com>
Wed, 2 Nov 2016 08:53:07 +0000 (2 01:53 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 2 Nov 2016 08:53:07 +0000 (2 01:53 -0700)
tree41852511aca8200aeeb4fbdb5efa79f7f46b6249
parentafa1c6d3aae26443f939230d9466f70ecbeaf86d
Project.pm: support no alternates setup

If the "noalternates" element of the project's hash has been set
to true skip the alternates setup.

Normally not used, but with this change it's now possible to use
the standard Project creation machinery to create a fork that does
not have its parent as an alternate.

This mechanism is not needed when creating a second-level repository
that does not actually have a parent fork -- alternates setup is
automatically disabled already in that case.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/Project.pm