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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user