If no branch certificates are attached to a revision, we do not get

an empty array back from _getCerts(), but no entry for 'branch' at all.
master
Thomas Keller 2010-10-09 10:09:51 +00:00
parent 806e69b858
commit d25bc74d71
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ class IDF_Scm_Monotone extends IDF_Scm
$certs = $scm->_getCerts($revs[0]);
// for the very seldom case that a revision
// has no branch certificate
if (count($certs['branch']) == 0) {
if (!array_key_exists('branch', $certs)) {
$branch = '*';
}
else