Skip to content

Instantly share code, notes, and snippets.

@si9ma
Forked from iedemam/gist:9830045
Last active March 11, 2019 07:25
Show Gist options
  • Select an option

  • Save si9ma/2fc72c0707777e6cbb499394ed4c41c9 to your computer and use it in GitHub Desktop.

Select an option

Save si9ma/2fc72c0707777e6cbb499394ed4c41c9 to your computer and use it in GitHub Desktop.

Revisions

  1. si9ma revised this gist Mar 11, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -13,5 +13,5 @@ git:

    # use sed to replace the SSH URL with the public URL, then init and update submodules
    before_install:
    - sed -i 's/[email protected]:/git:\/\/github.com\//' .gitmodules
    - git submodule update --init --recursive
    - sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
    - git submodule update --init --recursive
  2. @iedemam iedemam created this gist Mar 28, 2014.
    17 changes: 17 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    #
    # I use SSH URLs in my submodules for convenience. However, Travis CI is unable to
    # clone from those URLs even though the repositories are public. To fix this, I'm
    # simply manipulating the .gitmodules file with sed so it points to the public
    # URLs before initializing the submodules.
    #
    # Hope it saves you some frustration!
    #

    # disable the default submodule logic
    git:
    submodules: false

    # use sed to replace the SSH URL with the public URL, then init and update submodules
    before_install:
    - sed -i 's/[email protected]:/git:\/\/github.com\//' .gitmodules
    - git submodule update --init --recursive