From 60195e1e1463ef2bd28b6823dcac85cb1c2a1d1c Mon Sep 17 00:00:00 2001 From: Derrick Stolee Date: Wed, 24 Aug 2022 14:45:45 -0400 Subject: [PATCH] update-all: pass all args down to 'update' subcommand We will later add --daily and --hourly arguments to the 'update' subcommand, but for now we will blindly pass the arguments down. --- cmd/git-bundle-server/update-all.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/git-bundle-server/update-all.go b/cmd/git-bundle-server/update-all.go index 44b9a05..489837f 100644 --- a/cmd/git-bundle-server/update-all.go +++ b/cmd/git-bundle-server/update-all.go @@ -24,8 +24,12 @@ func (UpdateAll) run(args []string) error { return err } + subargs := []string{"update", ""} + subargs = append(subargs, args...) + for route := range repos { - cmd := exec.Command(exe, "update", route) + subargs[1] = route + cmd := exec.Command(exe, subargs...) cmd.Stderr = os.Stderr cmd.Stdout = os.Stdout