提交 af33b54b 编写于 作者: C Chris Wanstrath

Bugfix: Don't try multiple git commands on a non-git dir when grabbing remote

上级 ef08548e
......@@ -80,7 +80,13 @@ module Hub
end
def current_remote
(current_branch && remote_for(current_branch)) || default_remote
return if remotes.empty?
if current_branch
remote_for(current_branch)
else
default_remote
end
end
def default_remote
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册