This commit is contained in:
2025-08-13 13:12:55 +02:00
parent 06a89aead9
commit b0ff9e3fbf
4 changed files with 6 additions and 7 deletions

View File

@@ -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.

View File

@@ -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 {