git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem switching branches in submodule
@ 2013-09-26 17:20 Manish Gill
  2013-09-26 18:08 ` Jonathan Nieder
  2013-09-26 23:44 ` Duy Nguyen
  0 siblings, 2 replies; 6+ messages in thread
From: Manish Gill @ 2013-09-26 17:20 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 785 bytes --]

Hello,

I have a git repository with lots of submodules. In one particular
submodule, I'm having the following problem:

If I try to switch branches at the top-level of that submodule, I succeed.

But, if I try to switch branches in any subsequen levels, I get the
following error:

    fatal: internal error: work tree has already been set
    Current worktree: ../path/Mailman3/rest_project
    New worktree: ../path/Mailman3/rest_project/website/public_rest

Here, Mailman3 is the primary repository and "rest_project" is a
submodule. I can do "git checkout" just fine
inside rest_project, but not after cd-ing into any other repos.

My git version is 1.8.4

Other commands, like git status, push/pull are working fine.

I'd appreciate any help. Thank you.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 555 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-09-26 23:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-26 17:20 Problem switching branches in submodule Manish Gill
2013-09-26 18:08 ` Jonathan Nieder
2013-09-26 18:33   ` Manish Gill
2013-09-26 18:48     ` Jonathan Nieder
2013-09-26 19:29       ` Manish Gill
2013-09-26 23:44 ` Duy Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).