mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-30 02:01:52 +00:00
Merge pull request #2805 from ethomson/msvc
submodule: declare vars at top of func block
This commit is contained in:
commit
2ce37794d0
@ -889,8 +889,11 @@ static int git_submodule_update_repo_init_cb(
|
|||||||
int bare,
|
int bare,
|
||||||
void *payload)
|
void *payload)
|
||||||
{
|
{
|
||||||
|
git_submodule *sm;
|
||||||
|
|
||||||
GIT_UNUSED(bare);
|
GIT_UNUSED(bare);
|
||||||
git_submodule *sm = payload;
|
|
||||||
|
sm = payload;
|
||||||
|
|
||||||
return submodule_repo_create(out, sm->repo, path);
|
return submodule_repo_create(out, sm->repo, path);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user