Re: [PATCH] submodule add: fix breakage when re-adding a deep submodule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2012-01-24 13:49, Jens Lehmann wrote:
diff --git a/git-submodule.sh b/git-submodule.sh
index 3adab93..9bb2e13 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -131,6 +131,7 @@ module_clone()
  	gitdir=
  	gitdir_base=
  	name=$(module_name "$path" 2>/dev/null)
+	test -n "$name" || name="$path"
  	base_path=$(dirname "$path")

  	gitdir=$(git rev-parse --git-dir)

That fixed my problem. Thanks Jens.

	Jehan

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]