submodule update: allow '.' for branch value
[gitweb.git] / git-submodule.sh
index 41aff65fac2ec88534cb57c65931c0a26e6dfcf2..8c5e8982ab9980daf14b144a5b41b191289fb1a2 100755 (executable)
@@ -614,7 +614,7 @@ cmd_update()
 
                if test -n "$remote"
                then
-                       branch=$(get_submodule_config "$name" branch master)
+                       branch=$(git submodule--helper remote-branch "$sm_path")
                        if test -z "$nofetch"
                        then
                                # Fetch remote before determining tracking $sha1