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
c31ae146
Commit
c31ae146
authored
Jan 06, 2013
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge cleanup should actually cleanup and the test should actually test
parent
7eb222fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/merge.c
+1
-1
tests-clar/reset/hard.c
+3
-3
No files found.
src/merge.c
View file @
c31ae146
...
...
@@ -26,7 +26,7 @@ int git_repository_merge_cleanup(git_repository *repo)
if
(
git_buf_joinpath
(
&
merge_head_path
,
repo
->
path_repository
,
GIT_MERGE_HEAD_FILE
)
<
0
||
git_buf_joinpath
(
&
merge_mode_path
,
repo
->
path_repository
,
GIT_MERGE_MODE_FILE
)
<
0
||
git_buf_joinpath
(
&
merge_m
ode_path
,
repo
->
path_repository
,
GIT_MERGE_MODE
_FILE
)
<
0
)
git_buf_joinpath
(
&
merge_m
sg_path
,
repo
->
path_repository
,
GIT_MERGE_MSG
_FILE
)
<
0
)
return
-
1
;
if
(
git_path_isfile
(
merge_head_path
.
ptr
))
{
...
...
tests-clar/reset/hard.c
View file @
c31ae146
...
...
@@ -111,10 +111,10 @@ void test_reset_hard__cleans_up_merge(void)
cl_git_mkfile
(
git_buf_cstr
(
&
merge_head_path
),
"beefbeefbeefbeefbeefbeefbeefbeefbeefbeef
\n
"
);
cl_git_pass
(
git_buf_joinpath
(
&
merge_msg_path
,
git_repository_path
(
repo
),
"MERGE_MSG"
));
cl_git_mkfile
(
git_buf_cstr
(
&
merge_
head
_path
),
"Merge commit 0017bd4ab1ec30440b17bae1680cff124ab5f1f6
\n
"
);
cl_git_mkfile
(
git_buf_cstr
(
&
merge_
msg
_path
),
"Merge commit 0017bd4ab1ec30440b17bae1680cff124ab5f1f6
\n
"
);
cl_git_pass
(
git_buf_joinpath
(
&
merge_m
sg
_path
,
git_repository_path
(
repo
),
"MERGE_MODE"
));
cl_git_mkfile
(
git_buf_cstr
(
&
merge_
head
_path
),
""
);
cl_git_pass
(
git_buf_joinpath
(
&
merge_m
ode
_path
,
git_repository_path
(
repo
),
"MERGE_MODE"
));
cl_git_mkfile
(
git_buf_cstr
(
&
merge_
mode
_path
),
""
);
cl_git_pass
(
git_buf_joinpath
(
&
orig_head_path
,
git_repository_path
(
repo
),
"ORIG_HEAD"
));
cl_git_mkfile
(
git_buf_cstr
(
&
orig_head_path
),
"0017bd4ab1ec30440b17bae1680cff124ab5f1f6"
);
...
...
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