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
db092c19
Commit
db092c19
authored
Jan 30, 2014
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow tests to run without user config
parent
a1710a28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
tests/refs/branches/create.c
+6
-0
tests/refs/branches/move.c
+6
-0
No files found.
tests/refs/branches/create.c
View file @
db092c19
...
...
@@ -100,6 +100,12 @@ void test_refs_branches_create__default_reflog_message(void)
git_reflog
*
log
;
const
git_reflog_entry
*
entry
;
git_signature
*
sig
;
git_config
*
cfg
;
cl_git_pass
(
git_repository_config
(
&
cfg
,
repo
));
cl_git_pass
(
git_config_set_string
(
cfg
,
"user.name"
,
"Foo Bar"
));
cl_git_pass
(
git_config_set_string
(
cfg
,
"user.email"
,
"foo@example.com"
));
git_config_free
(
cfg
);
cl_git_pass
(
git_signature_default
(
&
sig
,
repo
));
...
...
tests/refs/branches/move.c
View file @
db092c19
...
...
@@ -218,6 +218,12 @@ void test_refs_branches_move__default_reflog_message(void)
git_reflog
*
log
;
const
git_reflog_entry
*
entry
;
git_signature
*
sig
;
git_config
*
cfg
;
cl_git_pass
(
git_repository_config
(
&
cfg
,
repo
));
cl_git_pass
(
git_config_set_string
(
cfg
,
"user.name"
,
"Foo Bar"
));
cl_git_pass
(
git_config_set_string
(
cfg
,
"user.email"
,
"foo@example.com"
));
git_config_free
(
cfg
);
cl_git_pass
(
git_signature_default
(
&
sig
,
repo
));
...
...
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