<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t7400-submodule-basic.sh, branch v2.16.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.16.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.16.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-10-07T01:56:08Z</updated>
<entry>
<title>tests: fix diff order arguments in test_cmp</title>
<updated>2017-10-07T01:56:08Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2017-10-06T19:00:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9c5b2fab304b5ce3233401c7c7e7a123d551c484'/>
<id>urn:sha1:9c5b2fab304b5ce3233401c7c7e7a123d551c484</id>
<content type='text'>
Fix the argument order for test_cmp. When given the expected
result first the diff shows the actual output with '+' and the
expectation with '-', which is the convention for our tests.

Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'bw/submodule-config-cleanup'</title>
<updated>2017-08-27T05:55:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-08-27T05:55:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=614ea03a71e6b5281d7fce9f073c091772145047'/>
<id>urn:sha1:614ea03a71e6b5281d7fce9f073c091772145047</id>
<content type='text'>
Code clean-up to avoid mixing values read from the .gitmodules file
and values read from the .git/config file.

* bw/submodule-config-cleanup:
  submodule: remove gitmodules_config
  unpack-trees: improve loading of .gitmodules
  submodule-config: lazy-load a repository's .gitmodules file
  submodule-config: move submodule-config functions to submodule-config.c
  submodule-config: remove support for overlaying repository config
  diff: stop allowing diff to have submodules configured in .git/config
  submodule: remove submodule_config callback routine
  unpack-trees: don't respect submodule.update
  submodule: don't rely on overlayed config when setting diffopts
  fetch: don't overlay config with submodule-config
  submodule--helper: don't overlay config in update-clone
  submodule--helper: don't overlay config in remote_submodule_branch
  add, reset: ensure submodules can be added or reset
  submodule: don't use submodule_from_name
  t7411: check configuration parsing errors
</content>
</entry>
<entry>
<title>clone: teach recursive clones to respect -q</title>
<updated>2017-08-04T16:08:37Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-08-03T22:25:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=03c004c581fb0ecd40bf21990449f393934b15ef'/>
<id>urn:sha1:03c004c581fb0ecd40bf21990449f393934b15ef</id>
<content type='text'>
Teach 'git clone --recurse-submodules' to respect the '-q' option by
passing down the quiet flag to the process which handles cloning of
submodules.

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>t7411: check configuration parsing errors</title>
<updated>2017-08-02T21:35:08Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-07-25T21:39:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5ea50954d0632342d38bd1a4d86c5aa601ef5207'/>
<id>urn:sha1:5ea50954d0632342d38bd1a4d86c5aa601ef5207</id>
<content type='text'>
Check for configuration parsing errors in '.gitmodules' in t7411, which
is explicitly testing the submodule-config subsystem, instead of in
t7400.  Also explicitly use the test helper instead of relying on the
gitmodules file from being read in status.

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 'bw/submodule-with-bs-path' into maint</title>
<updated>2017-06-04T01:20:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-04T01:20:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c95f0d2f9d616132db863992959b05545f8578cc'/>
<id>urn:sha1:c95f0d2f9d616132db863992959b05545f8578cc</id>
<content type='text'>
A hotfix to a topic that is already in v2.13.

* bw/submodule-with-bs-path:
  t7400: add !CYGWIN prerequisite to 'add with \\ in path'
</content>
</entry>
<entry>
<title>Merge branch 'bw/submodule-with-bs-path'</title>
<updated>2017-05-23T04:46:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-05-23T04:46:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bea1579b80f3e72f44f13dc20398e71b333af2a8'/>
<id>urn:sha1:bea1579b80f3e72f44f13dc20398e71b333af2a8</id>
<content type='text'>
A hotfix to a topic that is already in v2.13.

* bw/submodule-with-bs-path:
  t7400: add !CYGWIN prerequisite to 'add with \\ in path'
</content>
</entry>
<entry>
<title>Merge branch 'jk/submodule-init-segv-fix'</title>
<updated>2017-05-01T05:14:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-05-01T05:14:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d92dbf1934faad614c31482446d5f32fb9322470'/>
<id>urn:sha1:d92dbf1934faad614c31482446d5f32fb9322470</id>
<content type='text'>
Fix a segv in 'submodule init' when url is not given for a submodule.

* jk/submodule-init-segv-fix:
  submodule_init: die cleanly on submodules without url defined
</content>
</entry>
<entry>
<title>t7400: add !CYGWIN prerequisite to 'add with \\ in path'</title>
<updated>2017-05-01T02:03:46Z</updated>
<author>
<name>Ramsay Jones</name>
<email>ramsay@ramsayjones.plus.com</email>
</author>
<published>2017-04-30T17:29:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7f1b225153c9e75b805a262feb6796e3bf23dc3d'/>
<id>urn:sha1:7f1b225153c9e75b805a262feb6796e3bf23dc3d</id>
<content type='text'>
Commit cf9e55f494 ("submodule: prevent backslash expantion in submodule
names", 07-04-2017) added a test which creates a git repository with
some backslash characters in the name. On windows, where the backslash
character is a directory separator, it is not possible to create a
repository with the name 'sub\with\backslash'. (The NTFS filesystem would
probably allow it, but the win32 api does not). The MinGW and Git for
Windows versions of git actually create a repository called 'backslash'
in the sub-directory 'sub/with'.

On cygwin, however, due to the slightly schizophrenic treatment of the
backslash character by cygwin-git, this test fails at the 'git init'
stage. The git-init command does not recognise the directory separators
in the input path (eg. is_dir_sep('\\') is false), so it does not
attempt to create the leading directories 'sub/with'. (The call to
mkdir('sub\\with\\backslash') actually does recognise the directory
separators, but fails because the 'sub/with' directory doesn't exist).

In order to suppress the test failure (for now), add the !CYGWIN test
prerequisite.

Signed-off-by: Ramsay Jones &lt;ramsay@ramsayjones.plus.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule_init: die cleanly on submodules without url defined</title>
<updated>2017-04-25T02:00:15Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2017-04-25T00:57:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=627fde102515a7807dba89acaa88cb053b38a44a'/>
<id>urn:sha1:627fde102515a7807dba89acaa88cb053b38a44a</id>
<content type='text'>
When we init a submodule, we try to die when it has no URL
defined:

  url = xstrdup(sub-&gt;url);
  if (!url)
	  die(...);

But that's clearly nonsense. xstrdup() will never return
NULL, and if sub-&gt;url is NULL, we'll segfault.

These two bits of code need to be flipped, so we check
sub-&gt;url before looking at it.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<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>
</feed>
