Use load strategies for project
[gitphp.git] / include / git / projectlist / ProjectListBase.class.php
blob:a/include/git/projectlist/ProjectListBase.class.php -> blob:b/include/git/projectlist/ProjectListBase.class.php
--- a/include/git/projectlist/ProjectListBase.class.php
+++ b/include/git/projectlist/ProjectListBase.class.php
@@ -234,6 +234,12 @@
 			return;
 
 		$compat = $project->GetCompat();
+
+		if ($compat) {
+			$project->SetStrategy(new GitPHP_ProjectLoad_Git(GitPHP_GitExe::GetInstance()));
+		} else {
+			$project->SetStrategy(new GitPHP_ProjectLoad_Raw());
+		}
 
 		$headListStrategy = null;
 		if ($compat) {

comments