From 8196e728955a084303e99affff2ebc1120112516 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Fri, 30 Jan 2015 16:14:03 +0100 Subject: git-submodule.sh: fix '/././' path normalization When we add a new submodule the path of the submodule is being normalized. We fail to normalize multiple adjacent '/./', though. Thus 'path/to/././submodule' will become 'path/to/./submodule' where it should be 'path/to/submodule' instead. Signed-off-by: Patrick Steinhardt Acked-by: Jens Lehmann Signed-off-by: Junio C Hamano --- git-submodule.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-submodule.sh') diff --git a/git-submodule.sh b/git-submodule.sh index 66f5f752c5..6bf85f5afe 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -420,7 +420,7 @@ cmd_add() sed -e ' s|//*|/|g s|^\(\./\)*|| - s|/\./|/|g + s|/\(\./\)*|/|g :start s|\([^/]*\)/\.\./|| tstart -- cgit v1.2.3