提交 f5118b3b 编写于 作者: N Nick Lewis 提交者: Chris Wanstrath

Fixed a bug with adding remotes when no remotes exist

上级 1570f7ab
......@@ -65,14 +65,9 @@ module Hub
end
def remotes
remote_string = GIT_CONFIG['remote']
if remote_string
list = remote_string.split("\n")
main = list.delete('origin') and list.unshift(main)
list
else
list = []
end
list = GIT_CONFIG['remote'].to_s.split("\n")
main = list.delete('origin') and list.unshift(main)
list
end
def remotes_group(name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册