mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 20:02:04 +00:00
Adjust for msvc pedantry.
This commit is contained in:
parent
b494cdbdb2
commit
4d83399d35
@ -46,9 +46,10 @@ static int create_tracking_branch(git_repository *repo, const git_oid *target, c
|
||||
|
||||
/* Create the new branch */
|
||||
if (!git_branch_create(&branch_ref, repo, name, head_obj, 0)) {
|
||||
git_config *cfg;
|
||||
|
||||
git_reference_free(branch_ref);
|
||||
/* Set up tracking */
|
||||
git_config *cfg;
|
||||
if (!git_repository_config(&cfg, repo)) {
|
||||
git_buf remote = GIT_BUF_INIT;
|
||||
git_buf merge = GIT_BUF_INIT;
|
||||
|
Loading…
Reference in New Issue
Block a user