Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Support for Git submodules

Discussion in 'Unity Build Automation' started by liortal, Jan 20, 2016.

  1. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,555
    Hey,

    We saw that WebGL is now supported. Before spending time to configure a build, i'd like to know whether Git submodules are supported ?

    Our project uses 2 git repositories (on Github). One repository contains a submodule that is another "common" repo for generic code we use. Is cloud build cool with that? will it be able to handle this setup ?
     
  2. Miguel-Ferreira

    Miguel-Ferreira

    Joined:
    May 8, 2015
    Posts:
    90
    We are using a git submodule for our assets and everything works fine.

    The submodule is automatically pulled when the main git repo is pulled just like in your local working environment.
     
    liortal likes this.
  3. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,555
    Thanks! will give it a try then :)
     
  4. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    Ya submodules should work as long as you are using the git@ syntax (not git:// or https://) and you make sure that the ssh key generated by Cloud Build for you has access to both the main repository and the submodule.
     
    liortal likes this.