Changeset 1893 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/VCS.pm


Ignore:
Timestamp:
Aug 29, 2014, 11:23:35 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Adapt a patch from Hartmut Goebel h.goebel_at_crazy-compilers.com in order to add support for local git repos.
File:
1 edited

Legend:

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

    r1875 r1893  
    702702    # which needs it to trigger correct behaviour
    703703    $uri =~ s/^svk://;
    704     if (($scheme2 =~ /^git/) || ($scheme2 =~ /^hg/)) {
    705         # These VCS manage branches internally not with different tree structures
     704    if ($scheme2 =~ /^git/) {
     705        # remove schema from `git+file:` and `git+dir:` urls
     706        # TODO: handle query-parameters
     707        $url =~ s/^git\+(file|dir)://;
     708        # Expand potential env variable in it -- this is required due to the consistency check
     709        $url =~ s/(\$ENV.+\})/$1/eeg;
     710    } elsif ($scheme2 =~ /^hg/) {
     711        # This VCS manages branches internally not with different tree structures
    706712        # Assuming it's correct for now.
    707713    } elsif ($cmsurl ne $uri) {
Note: See TracChangeset for help on using the changeset viewer.