submodule update --init: correct path handling in recursive submodules
[gitweb.git] / git-submodule.sh
index b3f248c3fe4229f87c816b0968229ccdb7f53eeb..9fffa5c54a88022960260a1b94b8ec41ab4c4825 100755 (executable)
@@ -473,7 +473,7 @@ cmd_init()
                die_if_unmatched "$mode"
                name=$(git submodule--helper name "$sm_path") || exit
 
-               displaypath=$(relative_path "$sm_path")
+               displaypath=$(relative_path "$prefix$sm_path")
 
                # Copy url setting when it is not set yet
                if test -z "$(git config "submodule.$name.url")"