Re: shebang & windows: call an extensionless git hook

2014-05-23 Thread Albert-Jan Roskam
- Original Message - > From: Chris Angelico > To: > Cc: Python > Sent: Friday, May 23, 2014 4:01 PM > Subject: Re: shebang & windows: call an extensionless git hook > > On Fri, May 23, 2014 at 11:53 PM, Albert-Jan Roskam > > wrote: >> Ok, I just

Re: shebang & windows: call an extensionless git hook

2014-05-23 Thread Chris Angelico
On Fri, May 23, 2014 at 11:53 PM, Albert-Jan Roskam 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 runni

Re: shebang & windows: call an extensionless git hook

2014-05-23 Thread Albert-Jan Roskam
- Original Message - > From: Albert-Jan Roskam > To: Python > Cc: > Sent: Thursday, May 22, 2014 6:58 PM > Subject: shebang & windows: call an extensionless git hook > > Hi, > > I wrote the git pre-commit hook below. It is supposed to reject commits t

shebang & windows: call an extensionless git hook

2014-05-22 Thread Albert-Jan Roskam
Hi, I wrote the git pre-commit hook below. It is supposed to reject commits that contain large files (e.g. accidental commits by inexperienced users, think of "git add .") Anyway, I tried this under Linux, but the target platform is Windows. As per Git design the hook name *must* be "pre-comm