Skip to content

Commit a731b04

Browse files
authored
Merge pull request #485 from roots/fix/git
Fix `GitRepository` usage
2 parents 2f1e7ed + 7e091da commit a731b04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Target.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function add(Package $package): void
7979
'--annotate',
8080
'--message' => "Version {$version}",
8181
]);
82-
$this->gitRepo->push('origin', ["refs/tags/{$version}"]);
82+
$this->gitRepo->push(['origin', "refs/tags/{$version}"]);
8383

8484
$this->gitTags[] = $version;
8585
}

tests/TargetTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function testAdd()
9696
])
9797
->once();
9898
$gitRepo->shouldHaveReceived('push')
99-
->with('origin', ['refs/tags/1.2.3'])
99+
->with(['origin', 'refs/tags/1.2.3'])
100100
->once();
101101
}
102102
}

0 commit comments

Comments
 (0)