Closed GoogleCodeExporter closed 9 years ago
Figured it out...
My global git config file contained core.autocrlf = true, which was adding
windows line-endings to the python scripts. Removing this setting fixed the
problem.
Feel free to close this issue.
Original comment by bklarson@gmail.com
on 25 Jun 2010 at 4:34
Hi...
I have the some problem with you and i have tried the same method that you
say,but it does't work.
The git config file is "\git\etc\gitconfig".And i removing core.autocrlf=true.
So,any ideas on how to debug further?
thanks.
Original comment by symagic....@gmail.com
on 22 Nov 2011 at 9:10
By 'global git config file', I was referring to ~/.gitconfig. Have you checked
there?
Original comment by bklarson@gmail.com
on 22 Nov 2011 at 4:31
Hi,
The problem is likely not with Python, but rather with the command interpreter,
/bin/sh. The main.py and two other files in the git-repo repository have the
#!/bin/sh shebang on the first line, and it is /bin/sh that doesn't like CR+LF
line terminations.
In my mind repo should work even if git is configured with autocrlf=true. One
way that I have tested successfully is to add a .gitattributes with the
following content to the repository;
git_ssh text eol=lf
main.py text eol=lf
repo text eol=lf
If there are no objections I can push a change that adds a .gitattributes file
with the above content.
Original comment by mmm...@gmail.com
on 11 Feb 2013 at 8:40
https://gerrit-review.googlesource.com/42221
Original comment by mmm...@gmail.com
on 11 Feb 2013 at 9:17
Fixed in https://gerrit-review.googlesource.com/42221
Original comment by david.pu...@sonymobile.com
on 14 Feb 2013 at 7:53
Original issue reported on code.google.com by
bklarson@gmail.com
on 17 Jun 2010 at 5:02