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
84166fac
Commit
84166fac
authored
Nov 18, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revparse: remove timezone setup in tests
parent
bc05f30c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
tests-clar/refs/revparse.c
+0
-10
No files found.
tests-clar/refs/revparse.c
View file @
84166fac
...
...
@@ -7,9 +7,6 @@
static
git_repository
*
g_repo
;
static
git_object
*
g_obj
;
static
char
g_orig_tz
[
16
]
=
{
0
};
/* Helpers */
static
void
test_object_inrepo
(
const
char
*
spec
,
const
char
*
expected_oid
,
git_repository
*
repo
)
...
...
@@ -37,19 +34,12 @@ static void test_object(const char *spec, const char *expected_oid)
void
test_refs_revparse__initialize
(
void
)
{
char
*
tz
=
cl_getenv
(
"TZ"
);
if
(
tz
)
strcpy
(
g_orig_tz
,
tz
);
cl_setenv
(
"TZ"
,
"UTC"
);
cl_git_pass
(
git_repository_open
(
&
g_repo
,
cl_fixture
(
"testrepo.git"
)));
}
void
test_refs_revparse__cleanup
(
void
)
{
git_repository_free
(
g_repo
);
g_obj
=
NULL
;
cl_setenv
(
"TZ"
,
g_orig_tz
);
}
void
test_refs_revparse__nonexistant_object
(
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