On Sat, 16 Aug 2014 17:59:51 -0500
"Edward K. Ream" <[email protected]> wrote:

> So, I just added "$@" to get the arguments.  That is, commit-msg is
> now::
> 
> #!/bin/sh
> c:/Python27/python.exe C:/leo.repo/leo-editor/.git/hooks/commit-msg.py "$@"

Ok, so additional requirements are (a) it needs to run in unixen as
well and (b) it needs to work out where python in installed in windows,
e.g. D:\Python32\python.exe.

Soooo... I spent a long time trying to get the bash script to invoke,
using 'cmd', a batch (.bat) file which could then use the cmd internal
commadn 'start' which can launch a .py file as if clicked on, i.e.
knowing where Windows things python is according to the registry etc.

Did not succeed.  Re-wrote the hooks we need as pure bash scripts.
Shorter and easier than the python versions, only took a few minutes.
"Slow, but slow."  :-)

So, I think it's all good now, you can install the new hooks with

python leo/extensions/hooks/install_hooks.py --force

which overwrites existing hooks without asking.

NOTE: I dropped the 'parent' key from the json dict, couldn't think of
the use case - hope you weren't looking at it in the log text Jacob?
Can't of been, it's still working :-)

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to