4

I just pulled https://github.com/kolanos/kohana-universe and now I'm trying to update all the modules running:

git submodule update --init --recursive

Some of the repos are wrong or not existent anymore, and the command breaks in the middle.

Is there an option for the command to ignore the failed updates?

Mat
  • 202,337
  • 40
  • 393
  • 406
Pierre
  • 4,976
  • 12
  • 54
  • 76

2 Answers2

2

The only way i know is to remove broken submodule. This is how you can remove submodules - How do I remove a submodule?

Community
  • 1
  • 1
Rojan
  • 247
  • 3
  • 6
1

From this page I've found a way to exclude a submodule from submodule update. Suppose the module is dir/name. Then the recursive update-init command for all submodules except this one will look like

git -c submodule.dir/name.update=none submodule update --init --recursive

This doesn't automate skipping any unforeseen errors, but works fine if you know that some particular submodule won't update.

Ruslan
  • 18,162
  • 8
  • 67
  • 136