Merge branch 'nd/ls-remote-does-not-have-u-option' into maint
[gitweb.git] / builtin / init-db.c
index 49df78d2624d58a29173e4e3a881af0b0e37b7c5..69323e186cda73fe02658a535d8eae8387ff5444 100644 (file)
@@ -378,7 +378,7 @@ static void separate_git_dir(const char *git_dir)
                        die_errno(_("unable to move %s to %s"), src, git_dir);
        }
 
-       write_file(git_link, 1, "gitdir: %s\n", git_dir);
+       write_file(git_link, "gitdir: %s", git_dir);
 }
 
 int init_db(const char *template_dir, unsigned int flags)