Skip to content

Some submodule bugfixes

Stefan Beller git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 1 replyIn review

Changes in v2 from the cover letter

* I dropped the RFC patches for reattaching HEAD as that is not the main concern of this series.
* patch1 is just about dropping cp1 to reusing cp, instead of additionally "fixing" mem leaks as finish_command does that for us
* reordered the patches, former patch 3 now as patch 2 (avoid auto-discovery in new working tree manipulator code)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3submodule_move_head: reuse child_process structure for futher commandssubmodule.c+6 -60 replies
2/3submodule: avoid auto-discovery in new working tree manipulator codesubmodule.c+3 -30 replies
3/3submodule: properly recurse for read-tree and checkoutsubmodule.c t/lib-submodule-update.sh t/t1013-read-tree-submodule.sh +1 more+3 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/3] Some submodule bugfixes

v2:
* I dropped the RFC patches for reattaching HEAD as that is not the main concern of this series.
* patch1 is just about dropping cp1 to reusing cp, instead of additionally "fixing" mem leaks as finish_command does that for us
* reordered the patches, former patch 3 now as patch 2 (avoid auto-discovery in new working tree manipulator code)

Quoted 8 lines · * Regarding former patch2, I wrote:
Quoted 5 lines · Junio

Sounds good (if only because this makes it similar to other codepaths).

Is this something whose breakage before the patch is easily demonstrated with a test?

I'll try to come up with a test in a reroll.

done

Thanks,
Stefan

Stefan Beller (3):
submodule_move_head: reuse child_process structure for futher commands
submodule: avoid auto-discovery in new working tree manipulator code
submodule: properly recurse for read-tree and checkout

 submodule.c                    | 21 +++++++++++----------
 t/lib-submodule-update.sh      |  7 +------
 t/t1013-read-tree-submodule.sh |  1 -
 t/t2013-checkout-submodule.sh  |  1 -
 4 files changed, 12 insertions(+), 18 deletions(-)
Signature · 1 line
2.13.0.rc1.19.g083305f9b1