Skip to content

Commit 7352540

Browse files
committed
Fixed default page (should report with gitlab really and use presenter
1 parent 0cffb18 commit 7352540

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Gitlab/Api/Repositories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function tags($project_id)
2020
return $this->get('projects/'.urlencode($project_id).'/repository/tags');
2121
}
2222

23-
public function commits($project_id, $page = 1, $per_page = self::PER_PAGE, $ref_name = null)
23+
public function commits($project_id, $page = 0, $per_page = self::PER_PAGE, $ref_name = null)
2424
{
2525
return $this->get('projects/'.urlencode($project_id).'/repository/commits', array(
2626
'page' => $page,

lib/Gitlab/Model/Project.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public function tags()
219219
return $tags;
220220
}
221221

222-
public function commits($page = 1, $per_page = Api::PER_PAGE, $ref_name = null)
222+
public function commits($page = 0, $per_page = Api::PER_PAGE, $ref_name = null)
223223
{
224224
$data = $this->api('repo')->commits($this->id, $page, $per_page, $ref_name);
225225

0 commit comments

Comments
 (0)