Changeset 2403 in ProjectBuilder


Ignore:
Timestamp:
Apr 3, 2019, 9:26:49 PM (5 years ago)
Author:
Bruno Cornec
Message:

initiate pbgitremote variable if not defined to origin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/VCS.pm

    r2349 r2403  
    422422        }
    423423        my ($pborigin) = pb_conf_get("pbgitremote");
     424        # Default git remote location called origin by default
     425        $pborigin->{$ENV{'PBPROJ'}} = "origin" if ((not defined $pborigin) || (not defined $pborigin->{$ENV{'PBPROJ'}}));
    424426        while (<GIT>) {
    425427            next unless (/^$pborigin->{$ENV{'PBPROJ'}}\s+(\S+) \(push\)$/);
     
    832834    pb_vcs_checkout($scheme,$uri,$exportdir);
    833835    if ((defined $pbinit) && ($scheme =~ /git/)) {
    834         # And now created the potentially missin gpbconf dir
     836        # And now created the potentially missing pbconf dir
    835837        pb_mkdir_p("$exportdir/pbconf");
    836838    }
Note: See TracChangeset for help on using the changeset viewer.