summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2015-03-04 21:48:54 +0100
committernulltoken <emeric.fermas@gmail.com>2015-03-04 22:09:44 +0100
commit015d4b7b386ac799416f58b52549b2201dd4f2c3 (patch)
treeedd104f7fde3786a786340a574e7367d97e178bf
parentbdf0e734506b5b18234d48a0e7c6995aeda30b9d (diff)
downloadlibgit2-015d4b7b386ac799416f58b52549b2201dd4f2c3.tar.gz
branch: fix generated reflog message upon creation
-rw-r--r--src/branch.c2
-rw-r--r--tests/refs/branches/create.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/branch.c b/src/branch.c
index 06602c525..e2a451518 100644
--- a/src/branch.c
+++ b/src/branch.c
@@ -86,7 +86,7 @@ int git_branch_create(
if (git_buf_joinpath(&canonical_branch_name, GIT_REFS_HEADS_DIR, branch_name) < 0)
goto cleanup;
- if (git_buf_printf(&log_message, "Branch: created from %s", git_oid_tostr_s(git_commit_id(commit))) < 0)
+ if (git_buf_printf(&log_message, "branch: Created from %s", git_oid_tostr_s(git_commit_id(commit))) < 0)
goto cleanup;
error = git_reference_create(&branch, repository,
diff --git a/tests/refs/branches/create.c b/tests/refs/branches/create.c
index dc805789f..d4cf4c29f 100644
--- a/tests/refs/branches/create.c
+++ b/tests/refs/branches/create.c
@@ -112,7 +112,7 @@ void test_refs_branches_create__default_reflog_message(void)
cl_git_pass(git_reflog_read(&log, repo, "refs/heads/" NEW_BRANCH_NAME));
entry = git_reflog_entry_byindex(log, 0);
- cl_git_pass(git_buf_printf(&buf, "Branch: created from %s", git_oid_tostr_s(git_commit_id(target))));
+ cl_git_pass(git_buf_printf(&buf, "branch: Created from %s", git_oid_tostr_s(git_commit_id(target))));
cl_assert_equal_s(git_buf_cstr(&buf), git_reflog_entry_message(entry));
cl_assert_equal_s(sig->email, git_reflog_entry_committer(entry)->email);