提交 83a6477b 编写于 作者: C Chris Wanstrath

Allow pushing to more than two remotes.

上级 88950d10
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册