How do I get back my submodules listing?

I have a repo that has submodules. They were displaying fine for a long time, but now they have disappeared from the repo's tree view. The repo still has those submodules, they are just not displaying in the tree – and thus not able for me to work with. Any idea what might have caused this to happen?

3 answers

This widget could not be displayed.

I have the same problem. I tried to add one of the missing submodules but git says it still in the index.

This widget could not be displayed.

I went into terminal mode and typed:

git submodule status

I get back:

bash.exe: warning: could not find /tmp, please create!

Is this the problem? What does it mean?

This widget could not be displayed.

Try cloning a fresh copy of the repo to a different folder and then init and update the submodule. If that works from the terminal try doing the same from sourcetree. If it doesn't work from sourcetree hopefully you can at least bookmark in sourcetree the one that worked from the terminal and see everything again.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

876 views 2 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you