Changeset 2348 in ProjectBuilder


Ignore:
Timestamp:
Jan 10, 2019, 4:45:32 PM (6 years ago)
Author:
Bruno Cornec
Message:

Fix check of PBPROJDIR when .git dir not found in pbconf

File:
1 edited

Legend:

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

    r2312 r2348  
    417417            # If not, the pbconf dir may be in the pbprojdir so sharing the .git dir
    418418            my $cwd = abs_path();
    419             chdir($dir) || return("");;
     419            chdir($ENV{'PBPROJDIR'}) || return("");;
    420420            open(GIT,"LANGUAGE=C $vcscmd remote -v 2> /dev/null |") || return("");
    421421            chdir($cwd) || return("");
     
    426426        }
    427427        close(GIT);
    428         warn "Unable to find remote origin for $dir";
     428        warn "Unable to find a remote git origin under $dir nor $ENV{'PBPROJDIR'}";
    429429        return "";
    430430    }
Note: See TracChangeset for help on using the changeset viewer.