Merge pull request #5835 from libgit2/cmn/branch-or-ref repo: specify init.defaultbranch is meant to be a branch name
diff --git a/src/repository.c b/src/repository.c
index 2c8b819..124722b 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;
}