Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
7eb76734
Commit
7eb76734
authored
Mar 04, 2015
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branch: fix generated reflog message upon renaming
parent
015d4b7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/branch.c
+1
-1
tests/refs/branches/move.c
+1
-1
No files found.
src/branch.c
View file @
7eb76734
...
...
@@ -236,7 +236,7 @@ int git_branch_move(
if
((
error
=
git_buf_joinpath
(
&
new_reference_name
,
GIT_REFS_HEADS_DIR
,
new_branch_name
))
<
0
)
goto
done
;
if
((
error
=
git_buf_printf
(
&
log_message
,
"
B
ranch: renamed %s to %s"
,
if
((
error
=
git_buf_printf
(
&
log_message
,
"
b
ranch: renamed %s to %s"
,
git_reference_name
(
branch
),
git_buf_cstr
(
&
new_reference_name
)))
<
0
)
goto
done
;
...
...
tests/refs/branches/move.c
View file @
7eb76734
...
...
@@ -216,7 +216,7 @@ void test_refs_branches_move__default_reflog_message(void)
cl_git_pass
(
git_reflog_read
(
&
log
,
repo
,
git_reference_name
(
new_branch
)));
entry
=
git_reflog_entry_byindex
(
log
,
0
);
cl_assert_equal_s
(
"
B
ranch: renamed refs/heads/master to refs/heads/master2"
,
cl_assert_equal_s
(
"
b
ranch: renamed refs/heads/master to refs/heads/master2"
,
git_reflog_entry_message
(
entry
));
cl_assert_equal_s
(
sig
->
email
,
git_reflog_entry_committer
(
entry
)
->
email
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment