diff --git a/config.c b/config.c
index 34584f62b40ef256d1d0f75e2ee16ed30b1c11fa..5b5a9a2e4c49026db7fcb9953a0ed25432de24e0 100644 (file)
--- a/config.c
+++ b/config.c
* If .git/config does not exist yet, write a minimal version.
*/
if (stat(config_filename, &st)) {
* If .git/config does not exist yet, write a minimal version.
*/
if (stat(config_filename, &st)) {
- static const char contents[] =
- "#\n"
- "# This is the config file\n"
- "#\n"
- "\n";
-
free(store.key);
/* if nothing to unset, error out */
free(store.key);
/* if nothing to unset, error out */
}
store.key = (char*)key;
}
store.key = (char*)key;
-
- write(fd, contents, sizeof(contents)-1);
store_write_section(fd, key);
store_write_pair(fd, key, value);
} else{
store_write_section(fd, key);
store_write_pair(fd, key, value);
} else{