Commit Diff


commit - 90da997cd59502716a04f402ee61abbb8af6ea5f
commit + e172ba2ea2f0115772dfd3cde60b7246f61b8756
blob - 03cc1639c6b0f51339e0d7edf7c4e35522e2464d
blob + 42d878839840a1536d698e3354094f4239db3ce3
--- got/got.c
+++ got/got.c
@@ -1096,15 +1096,12 @@ cmd_clone(int argc, char *argv[])
 		error = got_error_from_errno("got_repo_get_path_gitconfig");
 		goto done;
 	}
-	gitconfig_file = fopen(gitconfig_path, "w");
+	gitconfig_file = fopen(gitconfig_path, "a");
 	if (gitconfig_file == NULL) {
 		error = got_error_from_errno2("fopen", gitconfig_path);
 		goto done;
 	}
 	if (asprintf(&gitconfig,
-	    "[core]\n"
-	    "\trepositoryformatversion = 0\n"
-	    "\tbare = true\n"
 	    "[remote \"%s\"]\n"
 	    "\turl = %s\n"
 	    "\tfetch = +refs/heads/*:refs/remotes/%s/*\n",