Changeset 1866 in ProjectBuilder


Ignore:
Timestamp:
Apr 3, 2014, 10:29:52 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • If using git, then do not use the version name in the URI cloned as it's in the repo in fact.
Location:
devel
Files:
2 edited

Legend:

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

    r1850 r1866  
    677677    # Either we have a version in the uri, and it should be the same
    678678    # as the one in the envar. Or we should add the version to the uri
    679     if (basename($uri) ne basename($ENV{$envar})) {
     679    # # But noot if it's git as it manages version branches internally
     680    if ((basename($uri) ne basename($ENV{$envar})) && ($scheme !~ /^git/)) {
    680681        $uri .= "/".basename($ENV{$envar})
    681682    }
  • devel/pb/lib/ProjectBuilder/CMS.pm

    r1850 r1866  
    9393#
    9494my $turl = "$pburl->{$ENV{'PBPROJ'}}/$tmp";
    95 $turl = $pburl->{$ENV{'PBPROJ'}} if ($scheme =~ /^(flat)|(ftp)|(http)|(file)\b/o);
     95$turl = $pburl->{$ENV{'PBPROJ'}} if ($scheme =~ /^(flat)|(ftp)|(http)|(file)|(git)\b/o);
    9696pb_vcs_compliant(undef,'PBDIR',"$ENV{'PBPROJDIR'}/$tmp",$turl,$pbinit);
    9797
Note: See TracChangeset for help on using the changeset viewer.