summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-04-13 11:48:27 +0100
committerGitHub <noreply@github.com>2021-04-13 11:48:27 +0100
commitd05eda872b7998f7152cdd922cd83a4c5e8db3a1 (patch)
treed4d8e0978012781d4bb05abd3e50dcf91f0dab03
parenta1e5e2685d051244674e54868bb1ad90e595b050 (diff)
parent631fe56faeb0acc600074b89eaeca93e548d3e12 (diff)
downloadlibgit2-d05eda872b7998f7152cdd922cd83a4c5e8db3a1.tar.gz
Merge pull request #5835 from libgit2/cmn/branch-or-ref
repo: specify init.defaultbranch is meant to be a branch name
-rw-r--r--src/repository.c2
1 files changed, 1 insertions, 1 deletions
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;
}