On Jan 7, 2008, at 10:16 AM, Peter Karlsson wrote:Per default, CRLF conversion is disabled in msysgit. Git should not convert a single file. Does it really convert some? You can verify that CRLF conversion is off by running git config core.autocrlf which should just print an empty line. You can enable automatic conversion for all text files by running git config core.autocrlf true (this can be set on a per-repository basis or you can set a default for your account if you pass the '--global' option.) A difficulty you'll run into is that you need to set "core.autocrlf true" before you checkout. But because git clone fuses git init, git fetch, and git checkout into a single operation, you can't use it as is if you like to enable CRLF on a per-repository basis (it works if you set a global default). You can either use git clone -n URL # -n tells clone to stop before checkout cd turqstat git config core.autocrlf true git checkout -b master origin/master or you can manually do what clone would do for you, i.e. mkdir turqstat cd turqstat git init git config core.autocrlf true git remote add origin git://git.debian.org/git/turqstat/ turqstat.git git fetch origin git checkout -b master origin/master (this is what I typically do). BTW, I think that git clone should be improved to avoid the workaround described above. Maybe it could ask the user if it should set up a specific line ending conversion before checkout. Unfortunately, I had no time to write a patch, yet. Steffen - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Linus Torvalds | Linux 2.6.27-rc8 |
| Greg KH | [patch 00/71] 2.6.26-stable review |
| Dmitry Torokhov | 2.6.27-rc8+ - first impressions |
| jimmy bahuleyan | Re: Hibernation considerations |
git: | |
| Petr Baudis | [FYI][PATCH] Customizing the WinGit installer |
| Jan Hudec | Re: [PATCH] Move all dashed form git commands to libexecdir |
| Jay Soffian | Re: [PATCH] gitweb: Support caching projects list |
| Mark Levedahl | Allowing override of the default "origin" nickname |
| Richard Stallman | Real men don't attack straw men |
| Leon Dippenaar | New tcp stack attack |
| Luca Dell'Oca | Authenticate squid in Active Directory |
| Todd Pytel | IDE or SCSI virtual disks for VMWare image? |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Matthew Dharm | Re: [RFC] Patch to option HSO driver to the kernel |
| Ingo Molnar | Re: [bug] stuck localhost TCP connections, v2.6.26-rc3+ |
| David Miller | Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit kernels. |
