Commit 4d83399d by Ben Straub

Adjust for msvc pedantry.

parent b494cdbd
...@@ -46,9 +46,10 @@ static int create_tracking_branch(git_repository *repo, const git_oid *target, c ...@@ -46,9 +46,10 @@ static int create_tracking_branch(git_repository *repo, const git_oid *target, c
/* Create the new branch */ /* Create the new branch */
if (!git_branch_create(&branch_ref, repo, name, head_obj, 0)) { if (!git_branch_create(&branch_ref, repo, name, head_obj, 0)) {
git_config *cfg;
git_reference_free(branch_ref); git_reference_free(branch_ref);
/* Set up tracking */ /* Set up tracking */
git_config *cfg;
if (!git_repository_config(&cfg, repo)) { if (!git_repository_config(&cfg, repo)) {
git_buf remote = GIT_BUF_INIT; git_buf remote = GIT_BUF_INIT;
git_buf merge = GIT_BUF_INIT; git_buf merge = GIT_BUF_INIT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment