Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #71928
| References | <1400777937.43633.YahooMailNeo@web163802.mail.gq1.yahoo.com> <1400853223.2019.YahooMailNeo@web163806.mail.gq1.yahoo.com> |
|---|---|
| Date | 2014-05-24 00:01 +1000 |
| Subject | Re: shebang & windows: call an extensionless git hook |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.10245.1400853707.18130.python-list@python.org> (permalink) |
On Fri, May 23, 2014 at 11:53 PM, Albert-Jan Roskam <fomcl@yahoo.com.dmarc.invalid> wrote: > Ok, I just found out that the script works as-is under Windows (I need to save it as 'pre-commit', not as 'pre-commit.py'. That's great, though I still don't understand how Windows (or Git) knows how to do with it. > Are you running git from inside bash? If so, it's probably parsing the shebang and simulating a Unixesque environment, as part of the whole "let's try to make Unix stuff mostly work" policy. I'm amazed at how well it actually works; from drive letters to execution differences, everything's somehow finagled into operation. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: shebang & windows: call an extensionless git hook Chris Angelico <rosuav@gmail.com> - 2014-05-24 00:01 +1000
csiph-web