Changeset 2023 in ProjectBuilder


Ignore:
Timestamp:
Dec 8, 2015, 7:10:26 AM (8 years ago)
Author:
Bruno Cornec
Message:
  • export now export the current state of the git tree with git stash create instead of just HEAD to match what is done with svn
File:
1 edited

Legend:

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

    r2022 r2023  
    206206            }
    207207            $source = pb_vcs_mod_htftp($source,"git");
    208             pb_system("cd $source ; $vcscmd archive --format=tar HEAD | (mkdir $tmp && cd $tmp && tar xf -)","Exporting $source/HEAD from GIT to $tmp ");
     208            pb_system("cd $source ; stid=`$vcscmd stash create` ; $vcscmd archive --format=tar $stid | (mkdir $tmp && cd $tmp && tar xf -)","Exporting $source/HEAD from GIT to $tmp ");
    209209        } else {
    210210            $uri = pb_vcs_mod_htftp($uri,"git");
Note: See TracChangeset for help on using the changeset viewer.