<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t7400-submodule-basic.sh, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-04-19T04:37:46Z</updated>
<entry>
<title>Work around ash "alternate value" expansion bug</title>
<updated>2009-04-19T04:37:46Z</updated>
<author>
<name>Ben Jackson</name>
<email>ben@ben.com</email>
</author>
<published>2009-04-19T03:42:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ea10b60c910e4a23483f47f17becc5e58f07ebe9'/>
<id>urn:sha1:ea10b60c910e4a23483f47f17becc5e58f07ebe9</id>
<content type='text'>
Ash (used as /bin/sh on many distros) has a shell expansion bug
for the form ${var:+word word}.  The result is a single argument
"word word".  Work around by using ${var:+word} ${var:+word} or
equivalent.

Signed-off-by: Ben Jackson &lt;ben@ben.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mg/maint-submodule-normalize-path'</title>
<updated>2009-03-11T20:50:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-03-11T20:50:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=500ff119682eaa6d5047b40e54688219a57716ca'/>
<id>urn:sha1:500ff119682eaa6d5047b40e54688219a57716ca</id>
<content type='text'>
* mg/maint-submodule-normalize-path:
  git submodule: Fix adding of submodules at paths with ./, .. and //
  git submodule: Add test cases for git submodule add
</content>
</entry>
<entry>
<title>git submodule: Fix adding of submodules at paths with ./, .. and //</title>
<updated>2009-03-04T05:46:09Z</updated>
<author>
<name>Michael J Gruber</name>
<email>git@drmicha.warpmail.net</email>
</author>
<published>2009-03-03T15:08:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=db75ada559dd4de99fedd1fc4f62a9273f032dd3'/>
<id>urn:sha1:db75ada559dd4de99fedd1fc4f62a9273f032dd3</id>
<content type='text'>
Make 'git submodule add' normalize the submodule path in the
same way as 'git ls-files' does, so that 'git submodule init' looks up
the information in .gitmodules with the same key under which 'git
submodule add' stores it.

This fixes 4 known breakages.

Signed-off-by: Michael J Gruber &lt;git@drmicha.warpmail.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git submodule: Add test cases for git submodule add</title>
<updated>2009-03-04T05:46:09Z</updated>
<author>
<name>Michael J Gruber</name>
<email>git@drmicha.warpmail.net</email>
</author>
<published>2009-03-03T15:08:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ac8463d2b4c0e88011c40985bc519c0e2e2f2278'/>
<id>urn:sha1:ac8463d2b4c0e88011c40985bc519c0e2e2f2278</id>
<content type='text'>
Add simple test cases for adding and initialising submodules. The
init step is necessary in order to verify the added information.

The second test exposes a known breakage due to './' in the path: git
ls-files simplifies the path but git add does not, which leads to git
init looking for different lines in .gitmodules than git add adds.

The other tests add test cases for '//' and '..' in the path which
currently fail for the same reason.

Signed-off-by: Michael J Gruber &lt;git@drmicha.warpmail.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule: warn about non-submodules</title>
<updated>2009-02-07T20:49:58Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2009-02-07T13:43:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=496917b721adae11e596cd44b13cb8a49c388de7'/>
<id>urn:sha1:496917b721adae11e596cd44b13cb8a49c388de7</id>
<content type='text'>
Earlier, when you called

        git submodule some/bogus/path

Git would silently ignore the path, without warning the user about the
likely mistake.  Now it does.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Let ls-files strip trailing slashes in submodules' paths</title>
<updated>2009-02-07T20:49:50Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2009-02-07T13:43:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f3670a5749d704fe1edee4201f9b23adbf0bf967'/>
<id>urn:sha1:f3670a5749d704fe1edee4201f9b23adbf0bf967</id>
<content type='text'>
Tab completion makes it easy to add a trailing slash to a submodule path.
As it is completely clear what the user actually wanted to say, be nice
and strip that slash at the end.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git add: do not add files from a submodule</title>
<updated>2009-01-05T18:48:32Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2009-01-02T18:08:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2ce53f9b77eb36c6d1286f55fba65f8dc66b2564'/>
<id>urn:sha1:2ce53f9b77eb36c6d1286f55fba65f8dc66b2564</id>
<content type='text'>
It comes quite as a surprise to an unsuspecting Git user that calling
"git add submodule/file" (which is a mistake, alright) _removes_
the submodule in the index, and adds the file.  Instead, complain loudly.

While at it, be nice when the user said "git add submodule/" which is
most likely the consequence of tab-completion, and stage the submodule,
instead of trying to add the contents of that directory.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: use "git xyzzy" form (t7200 - t9001)</title>
<updated>2008-09-03T21:51:48Z</updated>
<author>
<name>Nanako Shiraishi</name>
<email>nanako3@lavabit.com</email>
</author>
<published>2008-09-03T08:59:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=47a528ad24185133867ebb5bb7692db2cb8bef39'/>
<id>urn:sha1:47a528ad24185133867ebb5bb7692db2cb8bef39</id>
<content type='text'>
Converts tests between t7201-t9001.

Signed-off-by: Nanako Shiraishi &lt;nanako3@lavabit.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t/: Use "test_must_fail git" instead of "! git"</title>
<updated>2008-07-13T20:21:26Z</updated>
<author>
<name>Stephan Beyer</name>
<email>s-beyer@gmx.net</email>
</author>
<published>2008-07-12T15:47:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d492b31cafe9aa5ce001b1d48815f4c0bb40d01a'/>
<id>urn:sha1:d492b31cafe9aa5ce001b1d48815f4c0bb40d01a</id>
<content type='text'>
This patch changes every occurrence of "! git" -- with the meaning
that a git call has to gracefully fail -- into "test_must_fail git".

This is useful to

 - make sure the test does not fail because of a signal,
   e.g. SIGSEGV, and

 - advertise the use of "test_must_fail" for new tests.

Signed-off-by: Stephan Beyer &lt;s-beyer@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule update: add convenience option --init</title>
<updated>2008-05-16T20:03:55Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2008-05-16T10:23:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=be4d2c83b68a96285cc05036add4d64d324e52d9'/>
<id>urn:sha1:be4d2c83b68a96285cc05036add4d64d324e52d9</id>
<content type='text'>
When a submodule is not initialized and you do not want to change the
defaults from .gitmodules anyway, you can now say

	$ git submodule update --init &lt;name&gt;

When "update" is called without --init on an uninitialized submodule,
a hint to use --init is printed.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
