Commit d05eda872b7998f7152cdd922cd83a4c5e8db3a1

Edward Thomson 2021-04-13T11:48:27

Merge pull request #5835 from libgit2/cmn/branch-or-ref repo: specify init.defaultbranch is meant to be a branch name

1
2
3
4
5
6
7
8
9
10
11
12
13
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;
 	}