Merge branch 'bc/worktree-doc-fix-detached'
[gitweb.git] / builtin / submodule--helper.c
index 74614a951e8bb8aef4ed0ef07665f8ec0e43cc78..899dc334e323a53f3e8a2981a1f8140f55f136a9 100644 (file)
@@ -626,7 +626,7 @@ static int module_clone(int argc, const char **argv, const char *prefix)
                                   module_clone_options);
 
        strbuf_addf(&sb, "%s/modules/%s", get_git_dir(), name);
-       sm_gitdir = xstrdup(absolute_path(sb.buf));
+       sm_gitdir = absolute_pathdup(sb.buf);
        strbuf_reset(&sb);
 
        if (!is_absolute_path(path)) {