remote: Don't use designated initializer

This commit is contained in:
Ryan Pham
2024-12-24 10:42:56 +09:00
parent 6039d28d43
commit 099e62ca03

View File

@@ -205,10 +205,7 @@ static void do_fetch_repo_with_ref_matching_negative_refspec(git_oid *commit1id)
/* fetch the remote with negative refspec for references prefixed with '_' */
{
char *refspec_strs = { NEGATIVE_SPEC };
git_strarray refspecs = {
.count = 1,
.strings = &refspec_strs,
};
git_strarray refspecs = { &refspec_strs, 1 };
git_remote *remote;