Should fix failing travis builds
This commit is contained in:
parent
7f0130100d
commit
ebb3a01036
6 changed files with 19 additions and 28 deletions
|
@ -73,7 +73,10 @@ class AppServiceProvider extends ServiceProvider
|
|||
return Cache::remember('git-version', 5, function () {
|
||||
if (file_exists(base_path('.git/HEAD'))) {
|
||||
$head = explode(' ', file_get_contents(base_path('.git/HEAD')));
|
||||
$path = base_path('.git/' . trim($head[1]));
|
||||
|
||||
if (array_key_exists(1, $head)) {
|
||||
$path = base_path('.git/' . trim($head[1]));
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($path) && file_exists($path)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue