diff --git a/lib/hub/commands.rb b/lib/hub/commands.rb index 4dab38a1fd89e63715b9469fc91fb03b686a9f4b..db63636a5c6d60733254c71a5429f18226027c61 100644 --- a/lib/hub/commands.rb +++ b/lib/hub/commands.rb @@ -99,9 +99,13 @@ module Hub remotes = args[1].split(',') args[1] = remotes.shift - while remotes.length > 0 do - args.after "git push #{remotes.shift} #{branch}" + after = "git push #{remotes.shift} #{branch}" + + while remotes.length > 0 + after += "; git push #{remotes.shift} #{branch}" end + + args.after after end def alias(args)