1. quattro_4

    No comment

    quattro_4
Changes in body
Source | HTML | Preview
@@ -64,18 +64,16 @@
./project1/.git
./project2/.git
...
# フックを各.git/hooksへコピー
-$ ruby -e 'Dir::glob("./**/.git").each{|f| `cp ~/.git_template/hooks/pre-commit #{f}/hooks/` }'
+$ ruby -e 'Dir::glob("./**/.git").each{|f| `cp ~/.git_template/hooks/pre-commit "#{f}/hooks/"` }'
# 再度確認
-$ ruby -e 'Dir::glob("./**/.git").each{|f| puts `ls #{f}/hooks/pre-commit` }'
+$ ruby -e 'Dir::glob("./**/.git").each{|f| puts `ls "#{f}/hooks/pre-commit"` }'
```
-(pathに空白があるものには未対応)
-
---
参考:
[git pullのhookをglobalに設定する](http://tajimajunpei-blog.blogspot.jp/2012/05/git-pullhookglobal.html)