We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea29a74 commit 000cbbfCopy full SHA for 000cbbf
lib/Github/Api/GitData/Trees.php
@@ -23,7 +23,7 @@ class Trees extends AbstractApi
23
*/
24
public function show($username, $repository, $sha, $recursive = false)
25
{
26
- return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/git/trees/'.rawurlencode($sha), array('recursive' => $recursive ? 1 : null));
+ return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/git/trees/'.rawurlencode($sha), $recursive ? array('recursive' => 1) : array());
27
}
28
29
/**
0 commit comments