Added --version flag to pit-cli. Bugfix in FileRepository

* `FileRepository` was incorrectly returning the root project's first
  set of subprojects for the `getRootProjects()` function, instead of the root
  project itself.
This commit is contained in:
Jonathan Bernard committed 2011-10-25 14:46:07 -05:00
1 parent 09319cb2e7
commit 5effdea201
5 files changed
+16 -6

No files matched your search

@@ -13,7 +13,7 @@ public class FileRepository extends Repository {
public void persist() {} // nothing to do
public Project[] getRootProjects() {
return fileProject.proejcts.values() as Project[]
return [fileProject] as Project[]
}
public FileProject createNewProject(String name) {