This commit is contained in:
2025-08-13 07:18:02 +02:00
parent 42fe7b0a0d
commit 5fa361256a
13 changed files with 228 additions and 292 deletions

View File

@@ -15,6 +15,7 @@ pub mut:
git_url string
git_pull bool
git_reset bool
git_root string
}
// get_repo_path implements the GitUrlResolver interface
@@ -22,7 +23,7 @@ pub fn get_repo_path(args GetRepoArgs) !string {
if os.exists(args.path) {
return args.path
}
mut gs := get()!
mut gs := get(coderoot:args.git_root)!
mut repo := gs.get_repo(
url: args.git_url
pull: args.git_pull

View File

@@ -116,7 +116,7 @@ pub fn (mut gitstructure GitStructure) get_repo(args_ ReposGetArgs) !&GitRepo {
}
if repositories.len > 1 {
repos := repositories.map('- ${it} ${it.account}.${it.name}').join_lines()
repos := repositories.map('- ${it.account}.${it.name}').join_lines()
return error('Found more than one repository for \n${args}\n${repos}')
}