Changes between Version 8 and Version 9 of WorkingConventions/Git/Submodules


Ignore:
Timestamp:
May 29, 2014 10:11:17 AM (11 months ago)
Author:
hvr
Comment:

more notes about URL rewriting/GitHub cloning

Legend:

Unmodified
Added
Removed
Modified
  • WorkingConventions/Git/Submodules

    v8 v9  
    3939Older tags/branches which were not fully converted into a submodule-configuration, will require an additional `./sync-all get` step to synchronize. 
    4040 
    41 Moreover, when cloning from the [http://github.com/ghc/ghc.git GitHub GHC Mirror], the submodule url paths need to be rewritten, e.g. `../packages/deepseq.git` to `../packages-deepseq.git`, so you can't simply use `--recursive`. 
     41To clone from the [http://github.com/ghc/ghc.git GitHub GHC Mirror] configure Git URL rewriting as described in the next section, as the submodule url paths need to be rewritten (e.g. `../packages/deepseq.git` to `../packages-deepseq.git`) and then proceed as if cloning from `git.haskell.org` as described above (the actual network operations will be redirected to !GitHub due to URL rewriting) 
    4242}}} 
    4343 
    4444=== Using the !GitHub GHC Mirror === 
    4545 
    46 You can instruct `git` to rewrite repo URLs via the `git config url.<base>.insteadOf` facility. For instance, the following configuration (which gets written to `${HOME}/.gitconfig`, so this needs to be done only once) uses GitHub instead of `git.haskell.org` for synchronizing/cloning the GHC repos: 
     46You can instruct `git` to rewrite repo URLs via the `git config url.<base>.insteadOf` facility. For instance, the following configuration (which gets written to `${HOME}/.gitconfig`, so this needs to be done only once) uses !GitHub instead of `git.haskell.org` for synchronizing/cloning the GHC repos: 
    4747 
    4848{{{#!sh