mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
Fix tests
This commit is contained in:
parent
a78fcc0619
commit
d288c2d7e2
@ -15,15 +15,12 @@ use Deployer\Exception\RuntimeException;
|
||||
set('branch', function () {
|
||||
try {
|
||||
$branch = runLocally('git rev-parse --abbrev-ref HEAD');
|
||||
|
||||
// Fix for Travis-CI
|
||||
if ($branch === 'HEAD') {
|
||||
$branch = null;
|
||||
}
|
||||
} catch (\Throwable $exception) {
|
||||
$branch = null;
|
||||
}
|
||||
|
||||
echo $branch;
|
||||
|
||||
if (input()->hasOption('branch') && !empty(input()->getOption('branch'))) {
|
||||
$branch = input()->getOption('branch');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user