summaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2007-09-29 23:39:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-09-30 06:36:02 (GMT)
commitfe50eef59b049588b7dc9b5e02707084f0516b7f (patch)
tree169aa2c26d88ea72c644fdf96b972f0e2988f233 /git-submodule.sh
parent6982ccecaf32ebf8adfcb66b4225da3b46255621 (diff)
downloadgit-fe50eef59b049588b7dc9b5e02707084f0516b7f.zip
git-fe50eef59b049588b7dc9b5e02707084f0516b7f.tar.gz
git-fe50eef59b049588b7dc9b5e02707084f0516b7f.tar.bz2
Fix adding a submodule with a remote url
Without this, a non-path URL gets lost before the clone. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-xgit-submodule.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index 727b1d3..4aaaaab 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -138,8 +138,8 @@ module_add()
# it is local
if base=$(get_repo_base "$repo"); then
repo="$base"
- realrepo=$repo
fi
+ realrepo=$repo
;;
esac