[git-users] execute hooks for submodules from global templates

2012-08-17 Thread Fred
Hello, I've defined a pre-commit hook in ~/.git_templates directory. It works great for all my git projects, except for submodules. If i do a commit in submodule directory pre-commit hook ist not executed. Is there a workaround? Fred -- You received this message because you are subscribed to

Re: [git-users] execute hooks for submodules from global templates

2012-08-17 Thread Pankaj Gupta
Not sure if i understood the problem... did you use this command to clone: git clone --template=templatedir --recursive-submodules sourcerepo or something else? please share the exact command.. -Pankaj On Fri, Aug 17, 2012 at 2:20 PM, Fred fredgarlo...@googlemail.com wrote: Hello, I've

Re: [git-users] execute hooks for submodules from global templates

2012-08-17 Thread Fred
just git clone --recursive sourcerepo in my config ~/.gitconfig I've added [init] templatedir = ~/.git_template On Friday, August 17, 2012 2:10:35 PM UTC+2, Pankaj Gupta wrote: Not sure if i understood the problem... did you use this command to clone: git clone