{"thread":{"id":"29721","subject":"Submodule status inside nested submodule fails","startedAt":"2012-02-24T09:53:23Z","lastAt":"2012-05-10T01:40:04Z","messageCount":5,"participants":["Charles Brossollet","rollinsdr@gmail.com","Heiko Voigt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"185325","messageId":"loom.20120224T104003-230@post.gmane.org","threadId":"29721","inReplyTo":null,"subject":"Submodule status inside nested submodule fails","fromName":"Charles Brossollet","fromEmail":"chbrosso@lltech.fr","sentAt":"2012-02-24T09:53:23Z","receivedAt":"2012-02-24T09:53:23Z","isPatch":false,"sender":{"key":"chbrosso@lltech.fr","avatar":null},"body":"Hello there,\n\nUsing MSysGit 1.7.9 on Win7 (64 bit), I have a repo with the following \nstructure:\n\nmain/\n  src/\n  ext/\n    submodule/\n       modules/module1\n       modules/module2\n\nsubmodule is... a submodule, having itself submodules.\n\nWhen I query submodule status --recursive in main/, no problem.\nBut when I query submodule status in  ext/submodule, I get error \"You need to\nrun this command from the toplevel of the working tree.\", which is a wrong\nerror message.\n\nSearching for message in git source I found the test triggering the message to\nbe an empty result for \"git rev-parse --show-cdup\". Running the command in\next/submodule strangely returns the *absolute* path of ext/submodule, which\nshould not happen because this command returns path of current dir relative to\nthe containing working tree.\n\nIs there something wrong with my repo? Or have I found a bug? Any help\nappreciated\n\nCharles\n"},{"id":"185333","messageId":"loom.20120224T142455-253@post.gmane.org","threadId":"29721","inReplyTo":"loom.20120224T104003-230@post.gmane.org","subject":"Re: Submodule status inside nested submodule fails","fromName":"Charles Brossollet","fromEmail":"chbrosso@lltech.fr","sentAt":"2012-02-24T13:41:35Z","receivedAt":"2012-02-24T13:41:35Z","isPatch":false,"sender":{"key":"chbrosso@lltech.fr","avatar":null},"body":"Charles Brossollet <chbrosso <at> lltech.fr> writes:\n \n> Searching for message in git source I found the test triggering the message to\n> be an empty result for \"git rev-parse --show-cdup\". Running the command in\n> ext/submodule strangely returns the *absolute* path of ext/submodule, which\n> should not happen because this command returns path of current dir relative to\n> the containing working tree.\n\nThings are OK if I run the commands from Windows' CMD, but it fails when run in\nMinGW shell, so I believe the problem is related to MsysGit, discussion follows\nup on their list.\n"},{"id":"191141","messageId":"1336500675427-7540130.post@n2.nabble.com","threadId":"29721","inReplyTo":"loom.20120224T142455-253@post.gmane.org","subject":"Re: Submodule status inside nested submodule fails","fromName":"rollinsdr@gmail.com","fromEmail":"rollinsdr@gmail.com","sentAt":"2012-05-08T18:11:15Z","receivedAt":"2012-05-08T18:11:15Z","isPatch":false,"sender":{"key":"rollinsdr@gmail.com","avatar":null},"body":"I'm having the same issue. Did it ever get resolved, or is there a hack to\nfix it, or is there some link I can track it on?\n\nThanks in advance for the help!\n\n\n\nCharles Brossollet wrote\n> \n> Charles Brossollet <chbrosso <at> lltech.fr> writes:\n> Using MSysGit 1.7.9 on Win7 (64 bit), I have a repo with the following \n> structure: \n> \n> main/ \n>   src/ \n>   ext/ \n>     submodule/ \n>        modules/module1 \n>        modules/module2 \n> \n> submodule is... a submodule, having itself submodules. \n> \n> When I query submodule status --recursive in main/, no problem. \n> But when I query submodule status in  ext/submodule, I get error \"You need\n> to \n> run this command from the toplevel of the working tree.\", which is a wrong \n> error message. \n> \n> Searching for message in git source I found the test triggering the\n> message to \n> be an empty result for \"git rev-parse --show-cdup\". Running the command in \n> ext/submodule strangely returns the *absolute* path of ext/submodule,\n> which \n> should not happen because this command returns path of current dir\n> relative to \n> the containing working tree. \n> \n> Is there something wrong with my repo? Or have I found a bug? Any help \n> appreciated \n> \n\n\nCharles Brossollet wrote\n> \n> Charles Brossollet <chbrosso <at> lltech.fr> writes:\n>  \n>> Searching for message in git source I found the test triggering the\n>> message to\n>> be an empty result for \"git rev-parse --show-cdup\". Running the command\n>> in\n>> ext/submodule strangely returns the *absolute* path of ext/submodule,\n>> which\n>> should not happen because this command returns path of current dir\n>> relative to\n>> the containing working tree.\n> \n> Things are OK if I run the commands from Windows' CMD, but it fails when\n> run in\n> MinGW shell, so I believe the problem is related to MsysGit, discussion\n> follows\n> up on their list.\n> \n> \n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@.kernel\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n> \n\n--\nView this message in context: http://git.661346.n2.nabble.com/Submodule-status-inside-nested-submodule-fails-tp7314413p7540130.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"191241","messageId":"20120509213443.GA74366@book.hvoigt.net","threadId":"29721","inReplyTo":"1336500675427-7540130.post@n2.nabble.com","subject":"Re: Submodule status inside nested submodule fails","fromName":"Heiko Voigt","fromEmail":"hvoigt@hvoigt.net","sentAt":"2012-05-09T21:34:44Z","receivedAt":"2012-05-09T21:34:44Z","isPatch":false,"sender":{"key":"hvoigt@hvoigt.net","avatar":"https://avatars.githubusercontent.com/u/184958?v=4"},"body":"Hi,\n\nOn Tue, May 08, 2012 at 11:11:15AM -0700, rollinsdr@gmail.com wrote:\n> I'm having the same issue. Did it ever get resolved, or is there a hack to\n> fix it, or is there some link I can track it on?\n> \n> \n> Charles Brossollet wrote\n> > \n> > Charles Brossollet <chbrosso <at> lltech.fr> writes:\n> > Using MSysGit 1.7.9 on Win7 (64 bit), I have a repo with the following \n> > structure: \n> > \n> > main/ \n> >   src/ \n> >   ext/ \n> >     submodule/ \n> >        modules/module1 \n> >        modules/module2 \n> > \n> > submodule is... a submodule, having itself submodules. \n> > \n> > When I query submodule status --recursive in main/, no problem. \n> > But when I query submodule status in  ext/submodule, I get error \"You need\n\nWithout having looked at the code itself this smells like an issue with\nthe newly introduced gitlink files and git rev-parse --show-cdup not\ntaking this into account.\n\nI will have a look at this issue.\n\nCheers Heiko\n"},{"id":"191257","messageId":"1336614004527-7545109.post@n2.nabble.com","threadId":"29721","inReplyTo":"20120509213443.GA74366@book.hvoigt.net","subject":"Re: Submodule status inside nested submodule fails","fromName":"rollinsdr@gmail.com","fromEmail":"rollinsdr@gmail.com","sentAt":"2012-05-10T01:40:04Z","receivedAt":"2012-05-10T01:40:04Z","isPatch":false,"sender":{"key":"rollinsdr@gmail.com","avatar":null},"body":"Thanks Heiko,\n\n\nHeiko Voigt-3 wrote\n> \n> Hi,\n> \n> On Tue, May 08, 2012 at 11:11:15AM -0700, rollinsdr@ wrote:\n>> I'm having the same issue. Did it ever get resolved, or is there a hack\n>> to\n>> fix it, or is there some link I can track it on?\n>> \n>> \n>> Charles Brossollet wrote\n>> > \n>> > Charles Brossollet <chbrosso <at> lltech.fr> writes:\n>> > Using MSysGit 1.7.9 on Win7 (64 bit), I have a repo with the following \n>> > structure: \n>> > \n>> > main/ \n>> >   src/ \n>> >   ext/ \n>> >     submodule/ \n>> >        modules/module1 \n>> >        modules/module2 \n>> > \n>> > submodule is... a submodule, having itself submodules. \n>> > \n>> > When I query submodule status --recursive in main/, no problem. \n>> > But when I query submodule status in  ext/submodule, I get error \"You\n>> need\n> \n> Without having looked at the code itself this smells like an issue with\n> the newly introduced gitlink files and git rev-parse --show-cdup not\n> taking this into account.\n> \n> I will have a look at this issue.\n> \n> Cheers Heiko\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@.kernel\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n> \n\nActually the issue went away once I upgraded from 1.7.9 to 1.7.10, and\nre-cloned my repo. I guess it was fixed in 1.7.10, but some stuff in the\nconfig files had to be rewritten during the new clone to fix the issue b/c\njust switching to 1.7.10 and trying to use the existing repo still had the\nsame issue.\n\nThanks for all the work you guys do!\nDAVE\n\n--\nView this message in context: http://git.661346.n2.nabble.com/Submodule-status-inside-nested-submodule-fails-tp7314413p7545109.html\nSent from the git mailing list archive at Nabble.com.\n"}]}