<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-submodule.sh, branch v2.13.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.13.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.13.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-04-17T03:09:36Z</updated>
<entry>
<title>submodule: prevent backslash expantion in submodule names</title>
<updated>2017-04-17T03:09:36Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-04-07T17:23:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cf9e55f49438d07dd554c5ade92f1c266363af36'/>
<id>urn:sha1:cf9e55f49438d07dd554c5ade92f1c266363af36</id>
<content type='text'>
When attempting to add a submodule with backslashes in its name 'git
submodule' fails in a funny way.  We can see that some of the
backslashes are expanded resulting in a bogus path:

git -C main submodule add ../sub\\with\\backslash
fatal: repository '/tmp/test/sub\witackslash' does not exist
fatal: clone of '/tmp/test/sub\witackslash' into submodule path

To solve this, convert calls to 'read' to 'read -r' in git-submodule.sh
in order to prevent backslash expantion in submodule names.

Reported-by: Joachim Durchholz &lt;jo@durchholz.org&gt;
Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule add: respect submodule.active and submodule.&lt;name&gt;.active</title>
<updated>2017-03-18T16:51:23Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-03-17T22:38:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1b614c07d2428927358cc7317622913d1dbd59c9'/>
<id>urn:sha1:1b614c07d2428927358cc7317622913d1dbd59c9</id>
<content type='text'>
In addition to adding submodule.&lt;name&gt;.url to the config, set
submodule.&lt;name&gt;.active to true unless submodule.active is configured
and the submodule's path matches the configured pathspec.

Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule sync: use submodule--helper is-active</title>
<updated>2017-03-17T18:06:09Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-03-16T22:29:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=25b31f1b73331d3d9e90a72c34e514795e98c174'/>
<id>urn:sha1:25b31f1b73331d3d9e90a72c34e514795e98c174</id>
<content type='text'>
Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule sync: skip work for inactive submodules</title>
<updated>2017-03-17T18:06:09Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-03-16T22:29:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e7849a9677e9db6af81f568ae40ad2eddf5d3f0d'/>
<id>urn:sha1:e7849a9677e9db6af81f568ae40ad2eddf5d3f0d</id>
<content type='text'>
Sync does some work determining what URLs should be used for a submodule
but then throws this work away if the submodule isn't active.  Instead
perform the activity check earlier and skip inactive submodule in order
to avoid doing unnecessary work.

Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule status: use submodule--helper is-active</title>
<updated>2017-03-17T18:06:09Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-03-16T22:29:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6dc9f01f33bdbaebcf811c89766d4e4902a96f27'/>
<id>urn:sha1:6dc9f01f33bdbaebcf811c89766d4e4902a96f27</id>
<content type='text'>
Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'sb/submodule-update-initial-runs-custom-script'</title>
<updated>2017-02-03T19:25:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-02-03T19:25:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4ba6bb2d1792bd799b295b879461ee5453faab3e'/>
<id>urn:sha1:4ba6bb2d1792bd799b295b879461ee5453faab3e</id>
<content type='text'>
The user can specify a custom update method that is run when
"submodule update" updates an already checked out submodule.  This
was ignored when checking the submodule out for the first time and
we instead always just checked out the commit that is bound to the
path in the superproject's index.

* sb/submodule-update-initial-runs-custom-script:
  submodule update: run custom update script for initial populating as well
</content>
</entry>
<entry>
<title>Merge branch 'sb/submodule-add-force'</title>
<updated>2017-02-02T21:36:54Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-02-02T21:36:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1e6a89323b57888d5464732ea7a56a5fd385318b'/>
<id>urn:sha1:1e6a89323b57888d5464732ea7a56a5fd385318b</id>
<content type='text'>
"git submodule add" used to be confused and refused to add a
locally created repository; users can now use "--force" option
to add them.

* sb/submodule-add-force:
  submodule add: extend force flag to add existing repos
</content>
</entry>
<entry>
<title>submodule update: run custom update script for initial populating as well</title>
<updated>2017-01-26T19:06:07Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2017-01-25T23:48:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e7b37caf4feace4ee799570285b4699b23e0581f'/>
<id>urn:sha1:e7b37caf4feace4ee799570285b4699b23e0581f</id>
<content type='text'>
In 1b4735d9f3 (submodule: no [--merge|--rebase] when newly cloned,
2011-02-17), all actions were defaulted to checkout for populating
a submodule initially, because merging or rebasing makes no sense
in that situation.

Other commands however do make sense, such as the custom command
that was added later (6cb5728c43, submodule update: allow custom
command to update submodule working tree, 2013-07-03).

I am unsure about the "none" command, as I can see an initial
checkout there as a useful thing. On the other hand going strictly
by our own documentation, we should do nothing in case of "none"
as well, because the user asked for it.

Reported-by: Han-Wen Nienhuys &lt;hanwen@google.com&gt;
Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'sb/submodule-init'</title>
<updated>2017-01-23T23:59:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-01-23T23:59:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e801be066cc12799cd053a5b4eb792d9007133fc'/>
<id>urn:sha1:e801be066cc12799cd053a5b4eb792d9007133fc</id>
<content type='text'>
Error message fix.

* sb/submodule-init:
  submodule update --init: display correct path from submodule
</content>
</entry>
<entry>
<title>Merge branch 'sb/submodule-embed-gitdir'</title>
<updated>2017-01-23T23:59:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-01-23T23:59:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9dc7f78149407cf2659d4ea6295bad88313b2899'/>
<id>urn:sha1:9dc7f78149407cf2659d4ea6295bad88313b2899</id>
<content type='text'>
Help-text fix.

* sb/submodule-embed-gitdir:
  submodule absorbgitdirs: mention in docstring help
</content>
</entry>
</feed>
