diff options
author | Dmitry Lobanov <gaussblurinc@gmail.com> | 2021-05-16 13:58:51 +0300 |
---|---|---|
committer | Dmitry Lobanov <gaussblurinc@gmail.com> | 2021-05-16 13:58:51 +0300 |
commit | f7c3d622ee978f9f9f10bb3098fe44a0ad436b84 (patch) | |
tree | 46504270dfff29add7a1175a147d87ad5b59ce15 | |
parent | 7d9599bd22521627b50527d394f1bb7c51252139 (diff) | |
download | libgit2-f7c3d622ee978f9f9f10bb3098fe44a0ad436b84.tar.gz |
branch: git branch upstream functions layouts have been fixed.
-rw-r--r-- | src/branch.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/branch.c b/src/branch.c index 55b748cb2..e32c5bd21 100644 --- a/src/branch.c +++ b/src/branch.c @@ -492,11 +492,13 @@ static int git_branch_upstream_with_format(git_buf *buf, git_repository *repo, c return error; } -int git_branch_upstream_remote(git_buf *buf, git_repository *repo, const char *refname) { +int git_branch_upstream_remote(git_buf *buf, git_repository *repo, const char *refname) +{ git_branch_upstream_with_format(buf, repo, refname, "branch.%s.remote"); } -int git_branch_upstream_merge(git_buf *buf, git_repository *repo, const char *refname) { +int git_branch_upstream_merge(git_buf *buf, git_repository *repo, const char *refname) +{ git_branch_upstream_with_format(buf, repo, refname, "branch.%s.merge"); } |