Problem switching branches in submodule
- From
- Manish Gill <mgill25@outlook.com>
- Date
- Sep 26, 2013, 17:20 UTC
- Message-ID
- <BLU0-SMTP17403D5452DA1619FEFCCBAB8280@phx.gbl>
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_restHere, 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.