]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/submodule--helper.c
Merge branch 'js/default-branch-name'
[thirdparty/git.git] / builtin / submodule--helper.c
index 59c1e1217c95a2aef1ef59b7d29de1b37ce4b082..a1c75607c72e190a10cc7af0184a41b04f5e77b5 100644 (file)
@@ -1981,7 +1981,7 @@ static const char *remote_submodule_branch(const char *path)
        free(key);
 
        if (!branch)
-               return "master";
+               return "HEAD";
 
        if (!strcmp(branch, ".")) {
                const char *refname = resolve_ref_unsafe("HEAD", 0, NULL, NULL);