GitRoot

craft your forge, build your project, grow your community freely
id
"74e2"
priority
100
sprint
""
assignee
null
kind
issue
status
triage

Where to find root?

When we launch gitroot with initConfig file, gitroot can’t find root repository.

Problem

All is ok, gitroot has created a repository with gitroot.

But when I launch ./gitroot --data ./data/ gitroot want to open repository/root to find conf, it can’t know the good one is repository/gitroot

Today solution

If we keep the ./conf.yml and run always gitroot witj it ./gitroot --config ./conf.yml --data ./data/ all will be ok. But the conf is duplicated between this file and what is in repository/gitroot/.gitroot/forgeConfig.yml

Ideal solution

Add a config file in data. Set the rootRepo and add the current version of gitroot.

When user wants to change root, it will need to update the repository/gitroot/.gitroot/forgeConfig.yml first. Then gitroot need to update the file and finally a relaunch will use the new root.