Fix adding a submodule with a remote url
authorDaniel Barkalow <barkalow@iabervon.org>
Sat, 29 Sep 2007 23:39:54 +0000 (19:39 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 30 Sep 2007 06:36:02 +0000 (23:36 -0700)
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>
git-submodule.sh

index 727b1d3206da6964affe80d92699cd39c1878e34..4aaaaab0d8450094efb8d2f8e82cc63383b91b48 100755 (executable)
@@ -138,8 +138,8 @@ module_add()
                # it is local
                if base=$(get_repo_base "$repo"); then
                        repo="$base"
-                       realrepo=$repo
                fi
+               realrepo=$repo
                ;;
        esac