mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-23 09:10:46 +00:00
Fix check for writing remote's fetch and push configurations
Fix copy-paste error
This commit is contained in:
parent
481f5e2721
commit
9c94a356cc
@ -199,7 +199,7 @@ int git_remote_save(const git_remote *remote)
|
||||
if (error < GIT_SUCCESS)
|
||||
goto cleanup;
|
||||
|
||||
if (remote->fetch.src != NULL && remote->fetch.src != NULL) {
|
||||
if (remote->fetch.src != NULL && remote->fetch.dst != NULL) {
|
||||
git_buf_clear(&buf);
|
||||
git_buf_clear(&value);
|
||||
git_buf_printf(&buf, "remote.%s.%s", remote->name, "fetch");
|
||||
@ -212,7 +212,7 @@ int git_remote_save(const git_remote *remote)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (remote->push.src != NULL && remote->push.src != NULL) {
|
||||
if (remote->push.src != NULL && remote->push.dst != NULL) {
|
||||
git_buf_clear(&buf);
|
||||
git_buf_clear(&value);
|
||||
git_buf_printf(&buf, "remote.%s.%s", remote->name, "push");
|
||||
|
Loading…
Reference in New Issue
Block a user