...
This commit is contained in:
@@ -3,6 +3,7 @@ module gittools
|
||||
import os
|
||||
import json
|
||||
import freeflowuniverse.herolib.core.pathlib
|
||||
import freeflowuniverse.herolib.ui.console
|
||||
|
||||
__global (
|
||||
gsinstances map[string]&GitStructure
|
||||
@@ -102,8 +103,10 @@ pub fn get(args_ GitStructureArgGet) !&GitStructure {
|
||||
mut gs := gsinstances[rediskey_] or {
|
||||
panic('Unexpected error: key not found in gsinstances')
|
||||
}
|
||||
gs.load(args.reload)!
|
||||
gs.load(false)!
|
||||
return gs
|
||||
}else{
|
||||
console.print_header("Loading GitStructure for ${args.coderoot}.")
|
||||
}
|
||||
|
||||
// Create and load the GitStructure instance.
|
||||
|
||||
@@ -165,7 +165,6 @@ pub fn (mut gs GitStructure) do(args_ ReposActionsArgs) !string {
|
||||
}
|
||||
|
||||
console.print_debug(" --- status all repo's\n need_commit0:${need_commit0} \n need_pull0:${need_pull0} \n need_push0:${need_push0}")
|
||||
$dbg;
|
||||
|
||||
mut ok := false
|
||||
if need_commit0 || need_pull0 || need_push0 {
|
||||
|
||||
Reference in New Issue
Block a user