Commit 6365e01
Always sync submodules before updating them
This ensures the origin in `.git/config` matches the one in
`.gitmodules`. Git will quite appropriately refrain from doing this
automatically, because it never allows remote repositories to update
local config. You have to ask.
(See: https://stackoverflow.com/a/45679261)
In Vundle's case, it is always correct to sync. These aren't repos that
a developer maintains; they are effectively read-only copies of remote
state. Since syncing is always correct, and git won't sync unless we
ask, then we should always sync.
Fixes VundleVim#911.1 parent 3f2c3fe commit 6365e01
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
395 | 396 | | |
396 | 397 | | |
397 | 398 | | |
| |||
408 | 409 | | |
409 | 410 | | |
410 | 411 | | |
| 412 | + | |
411 | 413 | | |
412 | 414 | | |
413 | 415 | | |
| |||
0 commit comments