Skip to content

fix cloning superprojects from "."

Heiko Voigt git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Fix relative submodule setup of submodule testst/t7403-submodule-sync.sh t/t7406-submodule-update.sh t/t7407-submodule-foreach.sh +1 more+8 -00 replies
2/3ensure that relative submodule url needs ./ or ../t/t7400-submodule-basic.sh+12 -00 replies
3/3fix corner case for relative submodule path calculationgit-submodule.sh t/t7400-submodule-basic.sh+66 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] fix cloning superprojects from "."

Hi,

Quoted 5 lines · Heiko Voigt

Since this is a change in behaviour I would like to further think about the implications this brings if we fix this. Not sure how many people clone from ".". The correct behavior (as documented) is the one you introduce with your patch. If we decide to fix this we should also correct the path calculation in git-submodule.sh.

Ok I think this corner case is not that commonly used since most people work with remote remotes which you can not cd into to clone from ".".

Here is a patch series to clean this handling up.

Cheers Heiko

Heiko Voigt (3):
Fix relative submodule setup of submodule tests ensure that relative submodule url needs ./ or ../ fix corner case for relative submodule path calculation

 git-submodule.sh             | 22 +++++++++++++++++
 t/t7400-submodule-basic.sh   | 56 ++++++++++++++++++++++++++++++++++++++++++++
 t/t7403-submodule-sync.sh    |  2 ++
 t/t7406-submodule-update.sh  |  2 ++
 t/t7407-submodule-foreach.sh |  2 ++
 t/t7506-status-submodule.sh  |  2 ++
 6 files changed, 86 insertions(+)
Signature · 1 line
1.8.0.3.gaed4666