Fixed issue 180, can't select branches containing / character in git projects.

This commit is contained in:
Loic d'Anterroches
2009-07-08 13:49:16 +02:00
parent 7d6cb22291
commit c0dfd6b5dc
8 changed files with 40 additions and 24 deletions

View File

@@ -75,7 +75,12 @@ class IDF_Scm_Git extends IDF_Scm
}
$res = array();
foreach ($out as $b) {
$res[substr($b, 2)] = '';
$b = substr($b, 2);
if (false !== strpos($b, '/')) {
$res[$this->getCommit($b)->commit] = $b;
} else {
$res[$b] = '';
}
}
$this->cache['branches'] = $res;
return $res;