[commit: ghc] wip/nfs-locking: Use --depth 1 for git clone (#298) (c3e8242)

git at git.haskell.org git at git.haskell.org
Fri Oct 27 00:49:17 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/nfs-locking
Link       : http://ghc.haskell.org/trac/ghc/changeset/c3e8242cf0954fb785868019fa73a338cfddfaba/ghc

>---------------------------------------------------------------

commit c3e8242cf0954fb785868019fa73a338cfddfaba
Author: Gracjan Polak <gracjanpolak at gmail.com>
Date:   Sat Feb 11 23:32:07 2017 +0100

    Use --depth 1 for git clone (#298)
    
    * Use --depth 1 for git clone
    
    * Update .travis.yml
    
    Try separating git commands
    
    * Update .travis.yml
    
    Try github
    
    * Update .travis.yml
    
    * Update .travis.yml
    
    * Update .travis.yml
    
    * Update .travis.yml
    
    * Update .travis.yml
    
    * Update .travis.yml


>---------------------------------------------------------------

c3e8242cf0954fb785868019fa73a338cfddfaba
 .travis.yml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 35ae3b7..f6eda04 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -28,12 +28,18 @@ install:
     - export PATH
     - env
 
+    # Fetch GHC sources into ./ghc
+    - git --version
+    - git config --global url."git://github.com/ghc/packages-".insteadOf git://github.com/ghc/packages/
+    - git clone --depth 1 --recursive git://github.com/ghc/ghc
+    # --shallow-submodules is not supported on travis standard git 1.8 (linux), but it is supported
+    # on Travis Mac OS X machines. But it does not work with github mirrors because it cannot
+    # find commits.
+
     # Install all Hadrian and GHC build dependencies
     - cabal update
     - cabal install alex happy ansi-terminal mtl shake quickcheck
 
-    # Fetch GHC sources into ./ghc
-    - git clone --recursive git://git.haskell.org/ghc.git --quiet
 
     # Travis has already cloned Hadrian into ./ and we need to move it
     # to ./ghc/hadrian -- one way to do it is to move the .git directory



More information about the ghc-commits mailing list