Skip to content

Commit 8314e20

Browse files
committed
removes potential newline character from git diff --name-status command
1 parent bbdf403 commit 8314e20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-deploy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ class Git {
119119
'submodules' => $submodule_paths
120120
);
121121

122+
$command = str_replace(array("\n","\r\n"), '', $command);
122123
$result = $this->exec($command);
123124

124125
if (empty($result)) {

0 commit comments

Comments
 (0)