Skip to content

Commit

Permalink
Best place for b flag in git submodule add command
Browse files Browse the repository at this point in the history
git submodule add -b <version> <repository> <path> is working.
  • Loading branch information
yjacolin committed Mar 22, 2016
1 parent 6d0d338 commit d693c33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/integrator/create_application.rst
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Add the CGXP submodule:

.. prompt:: bash

git submodule add git@github.com:camptocamp/cgxp.git <project>/<package>/static/lib/cgxp -b <version>
git submodule add -b <version> git@github.com:camptocamp/cgxp.git <project>/<package>/static/lib/cgxp
git submodule foreach git submodule update --init

``-b <version>`` forces to use the CGXP branch ``<version>``.
Expand Down Expand Up @@ -234,7 +234,7 @@ Add the CGXP submodule:

.. prompt:: bash

git submodule add https://github.com/camptocamp/cgxp.git <package>/static/lib/cgxp -b <version>
git submodule add -b <version> https://github.com/camptocamp/cgxp.git <package>/static/lib/cgxp
git submodule foreach git submodule update --init

``-b <version>`` forces to use the CGXP branch ``<version>``.
Expand Down

0 comments on commit d693c33

Please sign in to comment.