mailinfo: move filter/header stage to struct mailinfo
[gitweb.git] / submodule.c
index 9fcc86faa2ca48223eeaeaabc334d3f94d771c92..245ed4dfbb6a3d54adbd41d5de0ea64cf38dc8a3 100644 (file)
@@ -1033,7 +1033,7 @@ void connect_work_tree_and_git_dir(const char *work_tree, const char *git_dir)
 
        /* Update gitfile */
        strbuf_addf(&file_name, "%s/.git", work_tree);
-       write_file(file_name.buf, 1, "gitdir: %s\n",
+       write_file(file_name.buf, "gitdir: %s",
                   relative_path(git_dir, real_work_tree, &rel_path));
 
        /* Update core.worktree setting */