From 8b4b6178936363bb3629f7a70d30a2380666a263 Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Fri, 21 May 2021 18:44:22 -0700 Subject: [PATCH] Pass arguments to appropriate git commands --- gitm.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitm.rb b/gitm.rb index 8924b87..a90350d 100644 --- a/gitm.rb +++ b/gitm.rb @@ -29,10 +29,10 @@ end case args[0] when "push" log "Intercepted push command" - repos.each { |name, _| system "git push #{name} #{branch}" } + repos.each { |name, _| system "git push #{name} #{branch}", *args[1...] } when "init" log "Intercepted init command" - system "git init" + system "git init", *args[1...] repos.each { |name, repo| system "git remote add #{name} #{repo}" } system "git fetch origin" system "git checkout master"