git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] submodule add: fix breakage when re-adding a deep submodule

From
JBJehan Bing <jehan@orb.com>
Date
Jan 25, 2012, 01:48 UTC
Message-ID
<4F1F5F7E.2000506@orb.com>
In-Reply-To
<4F1F2784.1020904@web.de>
On 2012-01-24 13:49, Jens Lehmann wrote:
Show 12 quoted lines
> diff --git a/git-submodule.sh b/git-submodule.sh
> index 3adab93..9bb2e13 100755
> --- a/git-submodule.sh
> +++ b/git-submodule.sh
> @@ -131,6 +131,7 @@ module_clone()
>   	gitdir=
>   	gitdir_base=
>   	name=$(module_name "$path" 2>/dev/null)
> +	test -n "$name" || name="$path"
>   	base_path=$(dirname "$path")
>
>   	gitdir=$(git rev-parse --git-dir)
That fixed my problem. Thanks Jens.
	Jehan
Previous: Jens Lehmann
Message 9 of 9 in “[BUG] Fail to add a module in a subdirectory if module is already cloned”
  1. Jehan BingJan 24, 2012
  2. Jens LehmannJan 24, 2012
  3. Jens LehmannJan 24, 2012
  4. Junio C HamanoJan 24, 2012
  5. Jens LehmannJan 24, 2012
  6. Jens LehmannJan 24, 2012
  7. Junio C HamanoJan 24, 2012
  8. submodule add: fix breakage when re-adding a deep submoduleJens Lehmann, Jan 24, 2012
  9. Jehan BingJan 25, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.