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


Ignore:
Timestamp:
Apr 27, 2014, 12:46:33 PM (10 years ago)
Author:
Bruno Cornec
Message:
  • Improve git support for repo creation hopefully
  • Git build works correctly for pdfposter now
File:
1 edited

Legend:

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

    r1866 r1875  
    298298    } else {
    299299        # Pure git
    300         open(GIT,"LANGUAGE=C $vcscmd --git-dir=$dir/.git remote -v 2> /dev/null |") || return("");
     300        # First we may deal with a separat git repo under $dir
     301        if ( -d "$dir/.git" ) {
     302            open(GIT,"LANGUAGE=C $vcscmd --git-dir=$dir/.git remote -v 2> /dev/null |") || return("");
     303        } else {
     304            # If not, the pbconf dir may be in the pbprojdir so sharing the .git dir
     305            my $cwd = abs_path();
     306            chdir($dir) || return("");;
     307            open(GIT,"LANGUAGE=C $vcscmd remote -v 2> /dev/null |") || return("");
     308            chdir($cwd) || return("");
     309        }
    301310        while (<GIT>) {
    302311            next unless (/^origin\s+(\S+) \(push\)$/);
Note: See TracChangeset for help on using the changeset viewer.