Skip to content

Commit 807fe69

Browse files
committed
Mute possible 'Already on branch' on checkout
1 parent 976d23e commit 807fe69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Phug/Split/Command/Update.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protected function distributePackage(Split $cli, array $package, string $branch)
117117
$cli->chdir($sourceDirectory);
118118
$hash = $commit->getHash();
119119
$this->git('config advice.detachedHead false');
120-
$this->git("checkout -f $hash");
120+
$this->git("checkout -f $hash", [], '2>&1');
121121
rename("$distributionDirectory/.git", $this->output.'/.git.temp');
122122
$this->remove($distributionDirectory);
123123
shell_exec('cp -r . '.escapeshellarg($distributionDirectory));
@@ -154,7 +154,7 @@ protected function distributePackage(Split $cli, array $package, string $branch)
154154

155155
$cli->chdir($sourceDirectory);
156156

157-
$this->git("checkout -f $branch");
157+
$this->git("checkout -f $branch", [], '2>&1');
158158
$this->git('stash pop');
159159

160160
return true;

0 commit comments

Comments
 (0)