diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-02-21 12:15:23 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-02-21 12:15:23 +0100 |
| commit | 9c94a356cc61daa85e17c6342db9b3d62f788802 (patch) | |
| tree | aeb1e3606786cd4039bb43afe4a2b605de3ca5ee /src/remote.c | |
| parent | 481f5e2721f4504f4c7daece5045730f7fd3fb3c (diff) | |
| download | libgit2-9c94a356cc61daa85e17c6342db9b3d62f788802.tar.gz | |
Fix check for writing remote's fetch and push configurations
Fix copy-paste error
Diffstat (limited to 'src/remote.c')
| -rw-r--r-- | src/remote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote.c b/src/remote.c index 993037edf..91622a894 100644 --- a/src/remote.c +++ b/src/remote.c @@ -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"); |
