Skip to content

Commit d05eda8

Browse files
authored
Merge pull request libgit2#5835 from libgit2/cmn/branch-or-ref
repo: specify init.defaultbranch is meant to be a branch name
2 parents a1e5e26 + 631fe56 commit d05eda8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/repository.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2401,7 +2401,7 @@ int git_repository_initialbranch(git_buf *out, git_repository *repo)
24012401
goto done;
24022402

24032403
if (!valid) {
2404-
git_error_set(GIT_ERROR_INVALID, "the value of init.defaultBranch is not a valid reference name");
2404+
git_error_set(GIT_ERROR_INVALID, "the value of init.defaultBranch is not a valid branch name");
24052405
error = -1;
24062406
}
24072407

0 commit comments

Comments
 (0)