Changeset 1875 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/VCS.pm
- Timestamp:
- Apr 27, 2014, 12:46:33 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/VCS.pm
r1866 r1875 298 298 } else { 299 299 # 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 } 301 310 while (<GIT>) { 302 311 next unless (/^origin\s+(\S+) \(push\)$/);
Note:
See TracChangeset
for help on using the changeset viewer.