[GHC] #7673: Windows: run "git config --global core.autocrlf false" before cloning the repo

#7673: Windows: run "git config --global core.autocrlf false" before cloning the repo ---------------------+------------------------------------------------------ Reporter: morabbin | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.6.2 | Keywords: Os: Windows | Architecture: Unknown/Multiple Failure: Other | Blockedby: Blocking: | Related: ---------------------+------------------------------------------------------ On my windows box, I experienced the following loop: {{{ GROOB:~/work $ git clone git@github.com:ghc/ghc.git Cloning into 'ghc'... remote: Counting objects: 223976, done. remote: Compressing objects: 100% (44932/44932), done. remote: Total 223976 (delta 179757), reused 222061 (delta 178061) Receiving objects: 100% (223976/223976), 67.25 MiB | 560 KiB/s, done. Resolving deltas: 100% (179757/179757), done. GROOB:~/work $ cd ghc GROOB:~/work/ghc $ ls ANNOUNCE SUBMAKEHELP config.sub* ghc.mk mk/ tarballs HACKING aclocal.m4 configure.ac ghc.spec.in packages utils/ LICENSE bindisttest/ distrib/ includes/ rts/ validate* MAKEHELP boot* docs/ install-sh* rules/ Makefile compiler/ driver/ libffi/ settings.in README config.guess* ghc/ libraries/ sync-all* GROOB:~/work/ghc $ ./sync-all get at ./sync-all line 287. == Checking for old haddock repo == Checking for old binary repo == Checking for old mtl repo == Checking for old Cabal repo == Checking for old time from tarball ============================ ATTENTION! You have an old time package in your GHC tree! Please remove it (e.g. "rm -r libraries/time"), and then run "./sync-all get" to get the new repository. ============================ GROOB:~/work/ghc $ l libraries/time ./ ../ GROOB:~/work/ghc $ rm -rf libraries/time GROOB:~/work/ghc $ l libraries/time /bin/ls: libraries/time: No such file or directory GROOB:~/work/ghc $ ./sync-all get at ./sync-all line 287. == Checking for old haddock repo == Checking for old binary repo == Checking for old mtl repo == Checking for old Cabal repo == Checking for old time from tarball ============================ ATTENTION! You have an old time package in your GHC tree! Please remove it (e.g. "rm -r libraries/time"), and then run "./sync-all get" to get the new repository. ============================ GROOB:~/work/ghc $ }}} Turns out the problem is solved by deleting the repo, running: {{{ git config --global core.autocrlf false }}} and checking out the repo again. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7673 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7673: Windows: run "git config --global core.autocrlf false" before cloning the repo ---------------------+------------------------------------------------------ Reporter: morabbin | Owner: Type: bug | Status: patch Priority: normal | Component: Compiler Version: 7.6.2 | Keywords: Os: Windows | Architecture: Unknown/Multiple Failure: Other | Blockedby: Blocking: | Related: ---------------------+------------------------------------------------------ Changes (by rassilon): * status: new => patch Comment: What do folks think about the 7673.diff attachment as a discussion point for dealing with this issue? -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7673#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7673: Windows: run "git config --global core.autocrlf false" before cloning the
repo
---------------------+------------------------------------------------------
Reporter: morabbin | Owner:
Type: bug | Status: patch
Priority: normal | Component: Compiler
Version: 7.6.2 | Keywords:
Os: Windows | Architecture: Unknown/Multiple
Failure: Other | Blockedby:
Blocking: | Related:
---------------------+------------------------------------------------------
Comment(by ian@…):
commit b46da7cc0d8a0a4a96d43ae1b1257b9adc31e347
{{{
Author: Ian Lynagh

#7673: Windows: run "git config --global core.autocrlf false" before cloning the repo -----------------------+---------------------------------------------------- Reporter: morabbin | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.2 Resolution: fixed | Keywords: Os: Windows | Architecture: Unknown/Multiple Failure: Other | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -----------------------+---------------------------------------------------- Changes (by igloo): * status: patch => closed * difficulty: => Unknown * resolution: => fixed Comment: Thanks for the patch; I've done something similar, which automatically sets the setting and resets the repo when cloning if the repository has autocrlf set to true. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7673#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC