...
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user