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
2011-10-25 11:33:06 -05:00
parent 09319cb2e7
commit 5effdea201
5 changed files with 16 additions and 6 deletions

View File

@ -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) {