From 72c4147c6c379a570eee2a0468e915abfbe61583 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Wed, 2 Nov 2016 01:53:07 -0700 Subject: [PATCH] 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 --- Girocco/Project.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Girocco/Project.pm b/Girocco/Project.pm index 1586fa0..a855114 100644 --- a/Girocco/Project.pm +++ b/Girocco/Project.pm @@ -940,7 +940,7 @@ sub _setup { } $self->_properties_save; - $self->_alternates_setup; + $self->_alternates_setup unless $self->{noalternates}; $self->_ctags_setup; $self->_group_remove; $self->_group_add($pushers); -- 2.11.4.GIT