提交 85446cae 编写于 作者: J Jingwen Owen Ou

Only transform args when it's more than two

上级 4c960d3a
......@@ -25,7 +25,7 @@ var cmdRemote = &Command{
git://github.com/YOUR_LOGIN/THIS_REPO.git
**/
func remote(command *Command, args []string) {
if len(args) >= 1 && (args[0] == "add" || args[0] == "set-url") {
if len(args) >= 2 && (args[0] == "add" || args[0] == "set-url") {
args = transformRemoteArgs(args)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册