public static function checkout_repo($repository_path, $branch) { $repo = new pakeGit($repository_path); $repo->checkout($branch); return $repo; }