Fixes the case of an empty repository.
This commit is contained in:
parent
ad8a6d3071
commit
b75286375e
@ -76,7 +76,7 @@ class IDF_Scm_Git extends IDF_Scm
|
||||
return $p;
|
||||
}
|
||||
}
|
||||
return $branches[0];
|
||||
return (isset($branches[0])) ? $branches[0] : 'master';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user