From 631fe56faeb0acc600074b89eaeca93e548d3e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Sun, 11 Apr 2021 21:22:33 +0200 Subject: repo: specify init.defaultbranch is meant to be a branch name We don't want the default branch's refname here but its name as branch. Returning an error saying it's not a valid reference here suggests we want the value of `init.defaultbranch` to be something like `refs/heads/default` which is not the case. --- src/repository.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repository.c b/src/repository.c index 2c8b8192e..124722bba 100644 --- a/src/repository.c +++ b/src/repository.c @@ -2401,7 +2401,7 @@ int git_repository_initialbranch(git_buf *out, git_repository *repo) goto done; if (!valid) { - git_error_set(GIT_ERROR_INVALID, "the value of init.defaultBranch is not a valid reference name"); + git_error_set(GIT_ERROR_INVALID, "the value of init.defaultBranch is not a valid branch name"); error = -1; } -- cgit v1.2.1