{"thread":{"id":"10083","subject":"[PATCH] Fix adding a submodule with a remote url","startedAt":"2007-09-29T23:39:54Z","lastAt":"2007-09-29T23:39:54Z","messageCount":1,"participants":["Daniel Barkalow"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"54382","messageId":"Pine.LNX.4.64.0709291937240.5926@iabervon.org","threadId":"10083","inReplyTo":null,"subject":"[PATCH] Fix adding a submodule with a remote url","fromName":"Daniel Barkalow","fromEmail":"barkalow@iabervon.org","sentAt":"2007-09-29T23:39:54Z","receivedAt":"2007-09-29T23:39:54Z","isPatch":true,"sender":{"key":"barkalow@iabervon.org","avatar":"https://avatars.githubusercontent.com/u/55364219?v=4"},"body":"Without this, a non-path URL gets lost before the clone.\n\nSigned-off-by: Daniel Barkalow <barkalow@iabervon.org>\n---\nI'm not sure if the use of $repo in this function is right, but this is \ndefinitely an improvement.\n\n git-submodule.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-submodule.sh b/git-submodule.sh\nindex 727b1d3..4aaaaab 100755\n--- a/git-submodule.sh\n+++ b/git-submodule.sh\n@@ -138,8 +138,8 @@ module_add()\n \t\t# it is local\n \t\tif base=$(get_repo_base \"$repo\"); then\n \t\t\trepo=\"$base\"\n-\t\t\trealrepo=$repo\n \t\tfi\n+\t\trealrepo=$repo\n \t\t;;\n \tesac\n \n-- \n1.5.3.2.1107.ge9eab8-dirty\n"}]}