Skip to content

Commit 2d670a8

Browse files
author
Alexandre Salomé
committed
fix Repository::getDiff call with array
1 parent 90d05de commit 2d670a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Gitonomy/Git/Repository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public function getLog($revisions = null, $paths = null, $offset = null, $limit
387387
*/
388388
public function getDiff($revision)
389389
{
390-
$args = array('-r', '-p', '-m', '-M', '--no-commit-id', '--full-index', $revision);
390+
$args = array_merge(array('-r', '-p', '-m', '-M', '--no-commit-id', '--full-index'), (array) $revision);
391391

392392
return Diff::parse($this->run('diff', $args));
393393
}

0 commit comments

Comments
 (0)