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
8e0aa2eb
Commit
8e0aa2eb
authored
Dec 07, 2014
by
Linquize
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken merge tests due to autocrlf was not false
parent
d226fbf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
tests/merge/workdir/simple.c
+8
-0
tests/rebase/merge.c
+12
-0
No files found.
tests/merge/workdir/simple.c
View file @
8e0aa2eb
...
...
@@ -237,6 +237,8 @@ void test_merge_workdir_simple__mergefile(void)
REMOVED_IN_MASTER_REUC_ENTRY
};
set_core_autocrlf_to
(
repo
,
false
);
merge_simple_branch
(
0
,
0
);
cl_git_pass
(
git_futils_readbuffer
(
&
conflicting_buf
,
...
...
@@ -279,6 +281,8 @@ void test_merge_workdir_simple__diff3(void)
REMOVED_IN_MASTER_REUC_ENTRY
};
set_core_autocrlf_to
(
repo
,
false
);
merge_simple_branch
(
0
,
GIT_CHECKOUT_CONFLICT_STYLE_DIFF3
);
cl_git_pass
(
git_futils_readbuffer
(
&
conflicting_buf
,
...
...
@@ -352,6 +356,8 @@ void test_merge_workdir_simple__diff3_from_config(void)
cl_git_pass
(
git_repository_config
(
&
config
,
repo
));
cl_git_pass
(
git_config_set_string
(
config
,
"merge.conflictstyle"
,
"diff3"
));
set_core_autocrlf_to
(
repo
,
false
);
merge_simple_branch
(
0
,
0
);
cl_git_pass
(
git_futils_readbuffer
(
&
conflicting_buf
,
...
...
@@ -392,6 +398,8 @@ void test_merge_workdir_simple__merge_overrides_config(void)
cl_git_pass
(
git_repository_config
(
&
config
,
repo
));
cl_git_pass
(
git_config_set_string
(
config
,
"merge.conflictstyle"
,
"diff3"
));
set_core_autocrlf_to
(
repo
,
false
);
merge_simple_branch
(
0
,
GIT_CHECKOUT_CONFLICT_STYLE_MERGE
);
cl_git_pass
(
git_futils_readbuffer
(
&
conflicting_buf
,
...
...
tests/rebase/merge.c
View file @
8e0aa2eb
...
...
@@ -8,12 +8,24 @@
static
git_repository
*
repo
;
static
git_signature
*
signature
;
static
void
set_core_autocrlf_to
(
git_repository
*
repo
,
bool
value
)
{
git_config
*
cfg
;
cl_git_pass
(
git_repository_config
(
&
cfg
,
repo
));
cl_git_pass
(
git_config_set_bool
(
cfg
,
"core.autocrlf"
,
value
));
git_config_free
(
cfg
);
}
// Fixture setup and teardown
void
test_rebase_merge__initialize
(
void
)
{
repo
=
cl_git_sandbox_init
(
"rebase"
);
cl_git_pass
(
git_signature_new
(
&
signature
,
"Rebaser"
,
"rebaser@rebaser.rb"
,
1405694510
,
0
));
set_core_autocrlf_to
(
repo
,
false
);
}
void
test_rebase_merge__cleanup
(
void
)
...
...
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