Update .gitignore and Refactor Path Resolution in Config
- Added MULTI_TURN_DESIGN.md to .gitignore to prevent tracking of design documents in the test directory. - Refactored the LoadWithRoot function in config.go for improved readability by adjusting indentation for the absolute path resolution logic.
This commit is contained in:
parent
8223a44885
commit
17013f459f
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -52,3 +52,4 @@ coverage.html
|
|||
agent/assistant/hook/*.test.md
|
||||
agent/search/TODO.md
|
||||
agent/search/job-logs.txt
|
||||
agent/test/MULTI_TURN_DESIGN.md
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ func LoadWithRoot(root string) Config {
|
|||
if root != "" {
|
||||
cfg.Root, _ = filepath.Abs(root)
|
||||
} else {
|
||||
cfg.Root, _ = filepath.Abs(cfg.Root)
|
||||
cfg.Root, _ = filepath.Abs(cfg.Root)
|
||||
}
|
||||
|
||||
// App Root
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue