diff options
Diffstat (limited to 'src/mozclient/lib/MozClient/VCS.pm')
-rw-r--r-- | src/mozclient/lib/MozClient/VCS.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mozclient/lib/MozClient/VCS.pm b/src/mozclient/lib/MozClient/VCS.pm index 29963ec..4999cdc 100644 --- a/src/mozclient/lib/MozClient/VCS.pm +++ b/src/mozclient/lib/MozClient/VCS.pm @@ -63,6 +63,14 @@ sub new { # The following options overwrite the conf files $self->{'MOZCLIENT_EMBEDDED'} = 1 if $$opt{'embedded'}; $self->{'MOZ_CO_MODULE'} = $$opt{'modules'} if defined $$opt{'modules'}; + if (defined $$opt{'local-branch'}) { + my $branch = $$opt{'local-branch'}; + $self->{'local-branch'} = $branch; + $branch =~ s,/+$,,; + my ($repo, $dir) = $branch =~ m,(.*/)([^/]+)$,; + $self->{'MOZCLIENT_VCS_LOC'} = $repo; + $self->{'MOZCLIENT_PROJECT'} = $dir; + } bless($self, $class); $self; |