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:
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) {
|
||||
|
||||
Reference in new issue
Block a user