Changeset 2025 in ProjectBuilder


Ignore:
Timestamp:
Dec 11, 2015, 7:36:11 AM (8 years ago)
Author:
Bruno Cornec
Message:

improve git support by archiving HEAD if no modif in progress and removing git+ on uri when needed

File:
1 edited

Legend:

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

    r2024 r2025  
    206206            }
    207207            $source = pb_vcs_mod_htftp($source,"git");
    208             pb_system("cd $source ; stid=`$vcscmd stash create` ; $vcscmd archive --format=tar \$stid | (mkdir $tmp && cd $tmp && tar xf -)","Exporting current $source from GIT to $tmp ");
     208            pb_system("cd $source ; stid=`$vcscmd stash create` ; $vcscmd archive --format=tar \$\{stid:=HEAD\} | (mkdir $tmp && cd $tmp && tar xf -)","Exporting current $source from GIT to $tmp ");
    209209        } else {
    210210            $uri = pb_vcs_mod_htftp($uri,"git");
     
    712712        return;
    713713    }
     714    # Remove git+ part if only in scheme
     715    $uri =~ s/^git\+// if (($scheme =~ /^git\+/) && ($scheme2 !~ /^git\+/));
    714716
    715717    if ($cmsurl ne $uri) {
Note: See TracChangeset for help on using the changeset viewer.