diff options
author | Dmitry Lobanov <gaussblurinc@gmail.com> | 2021-05-12 10:29:45 +0300 |
---|---|---|
committer | Dmitry Lobanov <gaussblurinc@gmail.com> | 2021-05-12 10:29:45 +0300 |
commit | a2d953e5ed48112ec132fc0f38f92ba66095c477 (patch) | |
tree | 9c7b10dc7f1a5656d5176c5404747c874287187a | |
parent | ff78aea6de84e04982b07fcf830555848a400815 (diff) | |
download | libgit2-a2d953e5ed48112ec132fc0f38f92ba66095c477.tar.gz |
branch: git branch upstream with format has been added.
-rw-r--r-- | src/branch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/branch.c b/src/branch.c index 29ff0b9d9..ff790b980 100644 --- a/src/branch.c +++ b/src/branch.c @@ -468,7 +468,7 @@ cleanup: return error; } -int git_branch_upstream_remote(git_buf *buf, git_repository *repo, const char *refname) +static int git_branch_upstream_with_format(git_buf *buf, git_repository *repo, const char *refname, const char *format) { int error; git_config *cfg; @@ -480,7 +480,7 @@ int git_branch_upstream_remote(git_buf *buf, git_repository *repo, const char *r return error; if ((error = git_buf_sanitize(buf)) < 0 || - (error = retrieve_upstream_configuration(buf, cfg, refname, "branch.%s.remote")) < 0) + (error = retrieve_upstream_configuration(buf, cfg, refname, format)) < 0) return error; if (git_buf_len(buf) == 0) { |