Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.040 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'friday,': 0.09; 'git': 0.09; 'parsing': 0.09; 'worked.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'mostly': 0.14; 'windows': 0.15; '23,': 0.16; 'as-is': 0.16; 'operation.': 0.16; 'subject:skip:e 10': 0.16; 'subject:windows': 0.16; 'windows:': 0.16; 'work"': 0.16; 'wrote:': 0.18; '8bit%:5': 0.22; 'cc:addr:python.org': 0.22; '(or': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'header:In-Reply- To:1': 0.27; 'chris': 0.29; 'unix': 0.29; "i'm": 0.30; "skip:' 10": 0.31; 'probably': 0.32; 'stuff': 0.32; 'running': 0.33; '-----': 0.33; 'fri,': 0.33; 'maybe': 0.34; 'knows': 0.35; 'something': 0.35; 'next': 0.36; 'hi,': 0.36; 'so,': 0.37; 'pm,': 0.38; 'does': 0.39; 'subject:': 0.39; 'sure': 0.39; 'how': 0.40; 'letters': 0.60; 'received:98.137': 0.60; 'save': 0.62; 're:': 0.63; 'to:addr:gmail.com': 0.65; 'header:Reply-To:1': 0.67; 'policy.': 0.68; 'received:gq1.yahoo.com': 0.68; 'received:mail.gq1.yahoo.com': 0.68; 'subject: & ': 0.68; 'received:98.136': 0.69; 'amazed': 0.84; 'differences,': 0.84; "everything's": 0.84; 'received:bullet.mail.gq1.yahoo.com': 0.84 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 505319.89853.bm@omp1040.mail.gq1.yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1400857773; bh=ZiYblp/iFm+U4pQS7Tg6/4g/OS45sBRCLtUKt4QDIGA=; h=References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=u1FkJ8QLwLsRyaDwOIjruWdvUPKNwgJM0Lvsb7rDnhN93o7vC/Ror8pI8EnX4qvZxSQ19+I48pbbgQbF+iAz3aUB9hRtR6VCWf/Y7BYb44feFcgBS396wRlgU6fh9ZL8OkJYgBsLFm4EVTtOC4IhqoaJFykoXklF8IZAhHG+4PU= X-YMail-OSG: Nxb9P2gVM1mWbazfn44r2dGLOsRk2.5mAI_hN6l4ehZkv5Z KHgab5ijJjcmmM5CGAuXur5qeyt1.f3DJE5wZQyNfg1d0dQQGqoMmnmrxk9a v74uAsLoeFlEeF8lLpqtdakcL42ikDQ_D.BfJsDHzB8754lWE0rmxanJo4LF QOUlHFqsXuRxVWqdJ5xxlKo2iF3rk9nwU9L50PGmTi0fgTwXe0CC7Nwt8MbN NlnwYCuWATycrX6807k2rgRQEMpSac7xu1H6w6wMJc03ZPIv26ezwqIU_fVE HMQvYRPHb2qORc0DkXM36YFPFyF35xiyyDhQnhscVLD3XrNGgYr_nGdRVg6h KmvsyH9EMoAuw9iSdqn8Qxb3aB9NC4lS5gvtnLM2gnIYa7iycH6rXT4JQfJl DThn5_T.P4vbUc1IjU.CyHwWfpT3Oc0OE0ja_QoxsDIAeLIFZHjf4OC1g0sn .0GiMn55XsnNOQ.45aGDG20goUTWXe0p9zobPgLUja59mDBv_IJBPUNZKrlY k6aXydUh1xtlwp2NJQrA52UkFNhh4lx5PbqmcEntex1z2cB2ckMHPqacLX0N xIb4C9eaxMg4SoLhwAM3x4ClqM1n9V9Uf.LcDSOjnAo20xQ-- X-Rocket-MIMEInfo: 002.001, LS0tLS0gT3JpZ2luYWwgTWVzc2FnZSAtLS0tLQo.IEZyb206IENocmlzIEFuZ2VsaWNvIDxyb3N1YXZAZ21haWwuY29tPgo.IFRvOiAKPiBDYzogUHl0aG9uIDxweXRob24tbGlzdEBweXRob24ub3JnPgo.IFNlbnQ6IEZyaWRheSwgTWF5IDIzLCAyMDE0IDQ6MDEgUE0KPiBTdWJqZWN0OiBSZTogc2hlYmFuZyAmIHdpbmRvd3M6IGNhbGwgYW4gZXh0ZW5zaW9ubGVzcyBnaXQgaG9vawo.IAo.IE9uIEZyaSwgTWF5IDIzLCAyMDE0IGF0IDExOjUzIFBNLCBBbGJlcnQtSmFuIFJvc2thbQo.IAo.IDxmb21jbEB5YWgBMAEBAQE- X-Mailer: YahooMailWebService/0.8.188.663 References: <1400777937.43633.YahooMailNeo@web163802.mail.gq1.yahoo.com> <1400853223.2019.YahooMailNeo@web163806.mail.gq1.yahoo.com> Date: Fri, 23 May 2014 08:09:33 -0700 (PDT) From: Albert-Jan Roskam Subject: Re: shebang & windows: call an extensionless git hook To: Chris Angelico In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Albert-Jan Roskam List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1400857942 news.xs4all.nl 2894 [2001:888:2000:d::a6]:55841 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71932 ----- Original Message -----=0A> From: Chris Angelico =0A= > To: =0A> Cc: Python =0A> Sent: Friday, May 23, 20= 14 4:01 PM=0A> Subject: Re: shebang & windows: call an extensionless git ho= ok=0A> =0A> On Fri, May 23, 2014 at 11:53 PM, Albert-Jan Roskam=0A> =0A> wrote:=0A>> Ok, I just found out that the sc= ript works as-is under Windows (I need to =0A> save it as 'pre-commit', not= as 'pre-commit.py'. That's =0A> great, though I still don't understand how= Windows (or Git) knows how to do =0A> with it.=0A>> =0A> =0A> Are you runn= ing git from inside bash? If so, it's probably parsing the=0A> shebang and = simulating a Unixesque environment, as part of the whole=0A> "let's try to = make Unix stuff mostly work" policy. I'm amazed =0A> at how=0A> well it act= ually works; from drive letters to execution differences,=0A> everything's = somehow finagled into operation.=0A=0AHi,=0A=A0=0AI just used cmd.exe and d= id some commits. And it just worked. Not sure about TortoiseGit.=A0(*note t= o self: check this next week!*)=0AMaybe Git does something with the 'mode p= ython' shebang (and python is on PATH).=A0=0A=A0=0Aregards,=0AAlbert-Jan=A0=