Skip to content

Commit a2d953e

Browse files
committed
branch: git branch upstream with format has been added.
1 parent ff78aea commit a2d953e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/branch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ int git_branch_upstream_name(
468468
return error;
469469
}
470470

471-
int git_branch_upstream_remote(git_buf *buf, git_repository *repo, const char *refname)
471+
static int git_branch_upstream_with_format(git_buf *buf, git_repository *repo, const char *refname, const char *format)
472472
{
473473
int error;
474474
git_config *cfg;
@@ -480,7 +480,7 @@ int git_branch_upstream_remote(git_buf *buf, git_repository *repo, const char *r
480480
return error;
481481

482482
if ((error = git_buf_sanitize(buf)) < 0 ||
483-
(error = retrieve_upstream_configuration(buf, cfg, refname, "branch.%s.remote")) < 0)
483+
(error = retrieve_upstream_configuration(buf, cfg, refname, format)) < 0)
484484
return error;
485485

486486
if (git_buf_len(buf) == 0) {

0 commit comments

Comments
 (0)