You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The ``git`` option sets the URL of the library. It can use various protocols, like ``http://`` as well as ``git://``.
70
+
71
+
* The ``target`` option specifies where the repository will live : plain Symfony bundles should go under the ``vendor/bundles/Acme`` directory, other third-party libraries usually go to ``vendor/my-awesome-library-name``. The target directory defaults to this last option when not specified.
72
+
73
+
* The ``version`` option allows you to set a specific revision. You can use a tag (``version=origin/0.42``) or a branch name (``refs/remotes/origin/awesome-branch``). It defaults to ``origin/HEAD``.
74
+
75
+
76
+
### Updating workflow
77
+
78
+
79
+
When you execute the ``php bin/vendors install``, for every library, the script first checks if the install directory exists.
80
+
81
+
If it does not (and ONLY if it does not, it runs a ``git clone``.
82
+
83
+
Then, it does a ``git fetch origin`` and a ``git reset --hard the-awesome-version``.
84
+
85
+
This means that the repository will only be cloned once. If you want to perform any change of the git remote, you MUST delete the entire target directory, not only its content.
0 commit comments