Changes between Version 4 and Version 5 of WorkingConventions/Git/Submodules


Ignore:
Timestamp:
Mar 24, 2014 8:13:47 AM (17 months ago)
Author:
hvr
Comment:

add subsection about push-urls

Legend:

Unmodified
Added
Removed
Modified
  • WorkingConventions/Git/Submodules

    v4 v5  
    4040
    4141Moreover, 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`.
     42}}}
     43
     44=== Overriding `push-url`s ===
     45
     46This subsection is only relevant for developers with `git push`-permissions.
     47
     48Unless the GHC source tree was cloned from `ssh://[email protected]/ghc.git`, the resulting pushurls will not point to a writable location.
     49
     50The following commands will configure appropriate push-urls for `ghc.git` and all its submodules:
     51
     52{{{#!sh
     53git remote set-url --push origin ssh://[email protected]/ghc.git
     54
     55git submodule foreach 'git remote set-url --push origin \
     56  ssh://[email protected]/$(git config -f $toplevel/.gitmodules --path "submodule.$name.url" | sed 's,^\.\./,,')'
    4257}}}
    4358