<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-submodule.sh, branch v1.7.9.7</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.7.9.7</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.7.9.7'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2012-01-24T22:18:18Z</updated>
<entry>
<title>submodule add: fix breakage when re-adding a deep submodule</title>
<updated>2012-01-24T22:18:18Z</updated>
<author>
<name>Jens Lehmann</name>
<email>Jens.Lehmann@web.de</email>
</author>
<published>2012-01-24T21:49:56Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=1017c1abcb6d733e1de83eb5a1cf7e1bf4ad6aca'/>
<id>urn:sha1:1017c1abcb6d733e1de83eb5a1cf7e1bf4ad6aca</id>
<content type='text'>
Since recently a submodule with name &lt;name&gt; has its git directory in the
.git/modules/&lt;name&gt; directory of the superproject while the work tree
contains a gitfile pointing there.

When the same submodule is added on a branch where it wasn't present so
far (it is not found in the .gitmodules file), the name is not initialized
from the path as it should. This leads to a wrong path entered in the
gitfile when the .git/modules/&lt;name&gt; directory is found, as this happily
uses the - now empty - name. It then always points only a single directory
up, even if we have a path deeper in the directory hierarchy.

Fix that by initializing the name of the submodule early in module_clone()
if module_name() returned an empty name and add a test to catch that bug.

Reported-by: Jehan Bing &lt;jehan@orb.com&gt;
Signed-off-by: Jens Lehmann &lt;Jens.Lehmann@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tc/submodule-clone-name-detection'</title>
<updated>2011-10-26T23:16:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-10-26T23:16:32Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0b26d1e8b29a4248d56078318fec6906e3007742'/>
<id>urn:sha1:0b26d1e8b29a4248d56078318fec6906e3007742</id>
<content type='text'>
* tc/submodule-clone-name-detection:
  submodule::module_clone(): silence die() message from module_name()
  submodule: whitespace fix
</content>
</entry>
<entry>
<title>submodule::module_clone(): silence die() message from module_name()</title>
<updated>2011-10-21T17:02:02Z</updated>
<author>
<name>Tay Ray Chuan</name>
<email>rctay89@gmail.com</email>
</author>
<published>2011-10-21T13:49:36Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=9e76d4a8345b247395b902307407ba4eac737524'/>
<id>urn:sha1:9e76d4a8345b247395b902307407ba4eac737524</id>
<content type='text'>
The die() message that may occur in module_name() is not really relevant
to the user when called from module_clone(); the latter handles the
"failure" (no submodule mapping) anyway.

Analysis of other callsites is left to future work.

Acked-by: Jens Lehmann &lt;Jens.Lehmann@web.de&gt;
Signed-off-by: Tay Ray Chuan &lt;rctay89@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule: whitespace fix</title>
<updated>2011-10-21T17:01:50Z</updated>
<author>
<name>Tay Ray Chuan</name>
<email>rctay89@gmail.com</email>
</author>
<published>2011-10-21T13:49:35Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=1e42258acd3787f7a817f4265da03c709d2e2aa1'/>
<id>urn:sha1:1e42258acd3787f7a817f4265da03c709d2e2aa1</id>
<content type='text'>
Replace SPs with TAB.

Signed-off-by: Tay Ray Chuan &lt;rctay89@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'fg/submodule-git-file-git-dir'</title>
<updated>2011-10-10T22:56:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-10-10T22:56:16Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=efc5fb6a77780c53c6636326ca82ff87b17e4c5f'/>
<id>urn:sha1:efc5fb6a77780c53c6636326ca82ff87b17e4c5f</id>
<content type='text'>
* fg/submodule-git-file-git-dir:
  Move git-dir for submodules
  rev-parse: add option --resolve-git-dir &lt;path&gt;

Conflicts:
	cache.h
	git-submodule.sh
</content>
</entry>
<entry>
<title>Merge branch 'js/i18n-scripts'</title>
<updated>2011-08-25T23:00:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-08-25T23:00:16Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=957450054cfbbe0d4ae8d33f7b74eace6e290f16'/>
<id>urn:sha1:957450054cfbbe0d4ae8d33f7b74eace6e290f16</id>
<content type='text'>
* js/i18n-scripts:
  submodule: take advantage of gettextln and eval_gettextln.
  stash: take advantage of eval_gettextln
  pull: take advantage of eval_gettextln
  git-am: take advantage of gettextln and eval_gettextln.
  gettext: add gettextln, eval_gettextln to encode common idiom
</content>
</entry>
<entry>
<title>Move git-dir for submodules</title>
<updated>2011-08-23T04:03:38Z</updated>
<author>
<name>Fredrik Gustafsson</name>
<email>iveqy@iveqy.com</email>
</author>
<published>2011-08-15T21:17:47Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=501770e1bb5d132ae4f79aa96715f07f6b84e1f6'/>
<id>urn:sha1:501770e1bb5d132ae4f79aa96715f07f6b84e1f6</id>
<content type='text'>
Move git-dir for submodules into $GIT_DIR/modules/[name_of_submodule] of
the superproject. This is a step towards being able to delete submodule
directories without loosing the information from their .git directory
as that is now stored outside the submodules work tree.

This is done relying on the already existent .git-file functionality.
When adding or updating a submodule whose git directory is found under
$GIT_DIR/modules/[name_of_submodule], don't clone it again but simply
point the .git-file to it and remove the now stale index file from it.
The index will be recreated by the following checkout.

This patch will not affect already cloned submodules at all.

Tests that rely on .git being a directory have been fixed.

Signed-off-by: Fredrik Gustafsson &lt;iveqy@iveqy.com&gt;
Mentored-by: Jens Lehmann &lt;Jens.Lehmann@web.de&gt;
Mentored-by: Heiko Voigt &lt;hvoigt@hvoigt.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jl/submodule-update-quiet'</title>
<updated>2011-08-08T19:33:34Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-08-08T19:33:34Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=86c9cd8d256919b90c63167bac05e0802f52a244'/>
<id>urn:sha1:86c9cd8d256919b90c63167bac05e0802f52a244</id>
<content type='text'>
* jl/submodule-update-quiet:
  submodule: update and add must honor --quiet flag
</content>
</entry>
<entry>
<title>submodule: take advantage of gettextln and eval_gettextln.</title>
<updated>2011-08-08T19:05:27Z</updated>
<author>
<name>Jon Seymour</name>
<email>jon.seymour@gmail.com</email>
</author>
<published>2011-08-07T11:58:17Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=6ff875c52ae48b8fe6a350df110e33aa2ba8afbc'/>
<id>urn:sha1:6ff875c52ae48b8fe6a350df110e33aa2ba8afbc</id>
<content type='text'>
Signed-off-by: Jon Seymour &lt;jon.seymour@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule: update and add must honor --quiet flag</title>
<updated>2011-07-28T19:48:26Z</updated>
<author>
<name>Jens Lehmann</name>
<email>Jens.Lehmann@web.de</email>
</author>
<published>2011-07-26T21:39:03Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=7e60407f7a36bd1f7fd505f9aa9580a837fbb190'/>
<id>urn:sha1:7e60407f7a36bd1f7fd505f9aa9580a837fbb190</id>
<content type='text'>
When using the --quiet flag "git submodule update" and "git submodule add"
didn't behave as the documentation stated. They printed progress output
from the clone, even though they should only print error messages.

Fix that by passing the -q flag to git clone in module_clone() when the
GIT_QUIET variable is set. Two tests in t7400 have been modified to test
that behavior.

Reported-by: Daniel Holtmann-Rice &lt;flyingtabmow@gmail.com&gt;
Signed-off-by: Jens Lehmann &lt;Jens.Lehmann@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
