Commit 98dbe63
submodule: only preserve flags across recursive status/update invocations
Recursive invocations of submodule update/status preserve all arguments,
so executing
git submodule update --recursive -- foo
attempts to recursively update a submodule named "foo".
Naturally, this fails as one cannot have an infinitely-deep stack of
submodules each containing a submodule named "foo". The desired behavior
is instead to update foo and then recursively update all submodules
inside of foo.
This commit accomplishes that by only saving the flags for use in the
recursive invocation.
Signed-off-by: Kevin Ballard <kevin@sb.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent a7eff1a commit 98dbe63
2 files changed
+42
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
| 377 | + | |
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
383 | 382 | | |
384 | 383 | | |
385 | 384 | | |
386 | 385 | | |
387 | | - | |
388 | 386 | | |
389 | 387 | | |
390 | | - | |
391 | 388 | | |
392 | 389 | | |
393 | 390 | | |
394 | | - | |
395 | 391 | | |
396 | 392 | | |
397 | 393 | | |
398 | 394 | | |
399 | 395 | | |
400 | | - | |
| 396 | + | |
| 397 | + | |
401 | 398 | | |
402 | 399 | | |
403 | 400 | | |
404 | | - | |
405 | 401 | | |
406 | 402 | | |
407 | | - | |
408 | 403 | | |
409 | 404 | | |
410 | 405 | | |
411 | | - | |
412 | 406 | | |
413 | 407 | | |
414 | 408 | | |
| |||
422 | 416 | | |
423 | 417 | | |
424 | 418 | | |
| 419 | + | |
| 420 | + | |
425 | 421 | | |
426 | 422 | | |
427 | 423 | | |
| |||
500 | 496 | | |
501 | 497 | | |
502 | 498 | | |
503 | | - | |
| 499 | + | |
504 | 500 | | |
505 | 501 | | |
506 | 502 | | |
| |||
733 | 729 | | |
734 | 730 | | |
735 | 731 | | |
736 | | - | |
| 732 | + | |
737 | 733 | | |
738 | 734 | | |
739 | 735 | | |
| |||
757 | 753 | | |
758 | 754 | | |
759 | 755 | | |
| 756 | + | |
760 | 757 | | |
761 | 758 | | |
762 | 759 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
229 | 244 | | |
230 | 245 | | |
231 | 246 | | |
| |||
254 | 269 | | |
255 | 270 | | |
256 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
257 | 291 | | |
0 commit comments