提交 2a0a630d 编写于 作者: C Chris Wanstrath

Bugfix: zsh quoting [thommay]

上级 a1845d21
## 1.0.2 (2010-03-07) ## 1.0.2 (2010-03-07)
* Bugfix: `hub remote -f name` (for real this time) * Bugfix: `hub remote -f name` (for real this time)
* Bugfix: zsh quoting [thommay]
## 1.0.1 (2010-03-05) ## 1.0.1 (2010-03-05)
......
...@@ -240,7 +240,7 @@ module Hub ...@@ -240,7 +240,7 @@ module Hub
shells = { shells = {
'sh' => 'alias git=hub', 'sh' => 'alias git=hub',
'bash' => 'alias git=hub', 'bash' => 'alias git=hub',
'zsh' => 'function git(){hub $@}', 'zsh' => 'function git(){hub "$@"}',
'csh' => 'alias git hub', 'csh' => 'alias git hub',
'fish' => 'alias git hub' 'fish' => 'alias git hub'
} }
......
...@@ -24,7 +24,7 @@ class AliasTest < Test::Unit::TestCase ...@@ -24,7 +24,7 @@ class AliasTest < Test::Unit::TestCase
end end
def test_alias_zsh def test_alias_zsh
assert_alias_command "zsh", "function git(){hub $@}" assert_alias_command "zsh", 'function git(){hub "$@"}'
end end
def test_alias_csh def test_alias_csh
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册