This commit is contained in:
2025-08-15 08:25:00 +02:00
parent e76f558f97
commit 71298a9704
7 changed files with 34 additions and 31 deletions

View File

@@ -45,12 +45,10 @@ pub fn (mut gs GitStructure) do(args_ ReposActionsArgs) !string {
mut args := args_
console.print_debug('git do ${args.cmd}')
$dbg;
if args.path == '' && args.url == '' && args.repo == '' && args.account == ''
&& args.provider == '' && args.filter == '' {
args.path = os.getwd()
}
// if args.path == '' && args.url == '' && args.repo == '' && args.account == ''
// && args.provider == '' && args.filter == '' {
// args.path = os.getwd()
// }
if args.path != '' {
mut curdiro := pathlib.get_dir(path: args.path, create: false)!
@@ -83,8 +81,6 @@ pub fn (mut gs GitStructure) do(args_ ReposActionsArgs) !string {
// gs.load(true)! // <-- REMOVED
// }
// NEW: Update status only for the relevant repos.
console.print_header('Updating status for selected repos...')
for mut repo in repos {
repo.status_update(reset: args.reload || args.cmd == 'reload')!
}