GitRoot

craft your forge, build your project, grow your community freely
 1---
 2id: "74e2"
 3priority: 100
 4sprint: ""
 5assignee: null
 6status: triage
 7kind: issue
 8---
 9
10# Where to find root?
11
12When we launch gitroot with initConfig file, gitroot can't find root repository.
13
14## Problem
15
16- generate initConf: `./gitroot --initConfig ./conf.yml`
17- change `rootrepositoryname` to `gitroot`
18- run `./gitroot --config ./conf.yml --data ./data/`
19
20All is ok, gitroot has created a repository with `gitroot`.
21
22But 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`
23
24## Today solution
25
26If 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`
27
28## Ideal solution
29
30Add a config file in data. Set the rootRepo and add the current version of gitroot.
31
32When 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.