Skip to content

Commit

Permalink
Remove superfluous arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Feb 4, 2022
1 parent 39cb505 commit 88171e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Composer/Downloader/GitDownloader.php
Expand Up @@ -135,7 +135,7 @@ protected function doInstall(PackageInterface $package, $path, $url)
$this->setPushUrl($path, $url);
}

if ($newRef = $this->updateToCommit($package, $path, (string) $ref, $package->getPrettyVersion(), $package->getReleaseDate())) {
if ($newRef = $this->updateToCommit($package, $path, (string) $ref, $package->getPrettyVersion())) {
if ($package->getDistReference() === $package->getSourceReference()) {
$package->setDistReference($newRef);
}
Expand Down Expand Up @@ -186,7 +186,7 @@ protected function doUpdate(PackageInterface $initial, PackageInterface $target,
};

$this->gitUtil->runCommand($commandCallable, $url, $path);
if ($newRef = $this->updateToCommit($target, $path, (string) $ref, $target->getPrettyVersion(), $target->getReleaseDate())) {
if ($newRef = $this->updateToCommit($target, $path, (string) $ref, $target->getPrettyVersion())) {
if ($target->getDistReference() === $target->getSourceReference()) {
$target->setDistReference($newRef);
}
Expand Down

0 comments on commit 88171e4

Please sign in to comment.