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

Re: Submodule status inside nested submodule fails

From
Rrollinsdr@gmail.com <rollinsdr@gmail.com>
Date
May 8, 2012, 18:11 UTC
Message-ID
<1336500675427-7540130.post@n2.nabble.com>
In-Reply-To
<loom.20120224T142455-253@post.gmane.org>

I'm having the same issue. Did it ever get resolved, or is there a hack to fix it, or is there some link I can track it on?

Thanks in advance for the help!
Charles Brossollet wrote
Show 32 quoted lines
> 
> Charles Brossollet <chbrosso <at> lltech.fr> writes:
> Using MSysGit 1.7.9 on Win7 (64 bit), I have a repo with the following 
> structure: 
> 
> main/ 
>   src/ 
>   ext/ 
>     submodule/ 
>        modules/module1 
>        modules/module2 
> 
> submodule is... a submodule, having itself submodules. 
> 
> When I query submodule status --recursive in main/, no problem. 
> But when I query submodule status in  ext/submodule, I get error "You need
> to 
> run this command from the toplevel of the working tree.", which is a wrong 
> error message. 
> 
> Searching for message in git source I found the test triggering the
> message to 
> be an empty result for "git rev-parse --show-cdup". Running the command in 
> ext/submodule strangely returns the *absolute* path of ext/submodule,
> which 
> should not happen because this command returns path of current dir
> relative to 
> the containing working tree. 
> 
> Is there something wrong with my repo? Or have I found a bug? Any help 
> appreciated 
> 
Charles Brossollet wrote
Show 25 quoted lines
> 
> Charles Brossollet <chbrosso <at> lltech.fr> writes:
>  
>> Searching for message in git source I found the test triggering the
>> message to
>> be an empty result for "git rev-parse --show-cdup". Running the command
>> in
>> ext/submodule strangely returns the *absolute* path of ext/submodule,
>> which
>> should not happen because this command returns path of current dir
>> relative to
>> the containing working tree.
> 
> Things are OK if I run the commands from Windows' CMD, but it fails when
> run in
> MinGW shell, so I believe the problem is related to MsysGit, discussion
> follows
> up on their list.
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@.kernel
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- View this message in context: http://git.661346.n2.nabble.com/Submodule-status-inside-nested-submodule-fails-tp7314413p7540130.html Sent from the git mailing list archive at Nabble.com.

Previous: Charles BrossolletNext: Heiko Voigt
Message 3 of 5 in “Submodule status inside nested submodule fails”
  1. Charles BrossolletFeb 24, 2012
  2. Charles BrossolletFeb 24, 2012
  3. rollinsdr@gmail.comMay 8, 2012
  4. Heiko VoigtMay 9, 2012
  5. rollinsdr@gmail.comMay 10, 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.