Skip to content

Commit 94f6ffe

Browse files
committed
Merge pull request pocketarc#36 from sbtsrbayer/master
Error with "-l" parameter and preventative measure against newlines
2 parents 492cfc9 + 8314e20 commit 94f6ffe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git-deploy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function main() {
1111
if ($args['revert']) {
1212
$server->revert($git, $args['list_only']);
1313
} else {
14-
$server->deploy($git, $git->interpret_target_commit($args['target_commit'], $server->server['branch']), $args['list_only']);
14+
$server->deploy($git, $git->interpret_target_commit($args['target_commit'], $server->server['branch']), false, $args['list_only']);
1515
}
1616
}
1717
}
@@ -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)