2

I am using submodule to control my plugin in MacVim. When I tried to update the submodule using git update submodule It comes out:

fatal: destination path 'bundle/ShowMark' already exists and is not an empty directory.
Clone of 'git://github.com/vim-scripts/ShowMarks.git' into submodule path 'bundle/ShowMark' failed

I tried my own solution: remove the directory and then git update submodule It works but the MacVim cannot run properly. MacVim cannot open any new/old files.

code4j
  • 4,208
  • 5
  • 34
  • 51
  • 1
    Your problem is very unclear. Can you give us more information on what exactly is and is not working? – Conner Aug 26 '12 at 04:20
  • I have a submodule in 'bundle/ShowMark', and I cannot update it by `git submodule update` because it already exist orz – code4j Aug 26 '12 at 23:53

2 Answers2

2

It'si possible MacVim has issue opening files in bundle/ShowMark because the actual repo name on GitHub is ShowMark**s**(.git).

It might be better if that submodule was register to be in bundle/ShowMarks.
See "How do I move an existing git submodule within a git repository?" for more on that step.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

a general solution worked for me

git submodule deinit --force . 
git submodule init 
git submodule update --recursive
Mohammad Kanan
  • 4,452
  • 10
  • 23
  • 47