GitRoot

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