Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix replace
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 15, 2016
1 parent 449bc23 commit ffeb71c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dist/phing/adhoctasks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,11 @@ class PydioParseGitSummarize extends Task
$this->log("-- Skipping ".$path, Project::MSG_INFO);
continue;
}
$end = str_replace($this->prefixPath, "", $path);
$pref = str_replace("/", "\/", $this->prefixPath);
$end = preg_replace("/^".$pref."/", "", $path);
} else {
$end = str_replace($this->sourceDir, '', $path);
$pref = str_replace("/", "\/", $this->sourceDir);
$end = preg_replace("/^".$pref."/", "", $path);
}
if (in_array($end, $this->ignores)) {
continue;
Expand Down

0 comments on commit ffeb71c

Please sign in to comment.