Fixes the case of an empty repository.

This commit is contained in:
Loic d'Anterroches 2009-05-27 16:59:25 +02:00
parent ad8a6d3071
commit b75286375e

View File

@ -76,7 +76,7 @@ class IDF_Scm_Git extends IDF_Scm
return $p;
}
}
return $branches[0];
return (isset($branches[0])) ? $branches[0] : 'master';
}
/**