X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=config.c;h=5b5a9a2e4c49026db7fcb9953a0ed25432de24e0;hb=724b511d4fb363ebee828ba3992c831ba006444c;hp=34584f62b40ef256d1d0f75e2ee16ed30b1c11fa;hpb=069b20a198f171512a1d2d2163b40f70c94f5257;p=git.git diff --git a/config.c b/config.c index 34584f62..5b5a9a2e 100644 --- a/config.c +++ b/config.c @@ -458,12 +458,6 @@ int git_config_set_multivar(const char* key, const char* value, * 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 */ @@ -474,8 +468,6 @@ int git_config_set_multivar(const char* key, const char* value, } store.key = (char*)key; - - write(fd, contents, sizeof(contents)-1); store_write_section(fd, key); store_write_pair(fd, key, value); } else{