git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
950c62b
)
test-repository: properly init repo
author
Derrick Stolee
<redacted>
Mon, 20 Aug 2018 18:24:24 +0000
(18:24 +0000)
committer
Junio C Hamano
<redacted>
Tue, 21 Aug 2018 17:22:50 +0000
(10:22 -0700)
Signed-off-by: Derrick Stolee <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/helper/test-repository.c
patch
|
blob
|
history
diff --git
a/t/helper/test-repository.c
b/t/helper/test-repository.c
index 2762ca656262baa9494d96a2647248f4042a2e01..6a84a53efbf6919c83d3f1fd73786acd92ee7abf 100644
(file)
--- a/
t/helper/test-repository.c
+++ b/
t/helper/test-repository.c
@@
-15,7
+15,10
@@
static void test_parse_commit_in_graph(const char *gitdir, const char *worktree,
struct commit *c;
struct commit_list *parent;
- repo_init(&r, gitdir, worktree);
+ setup_git_env(gitdir);
+
+ if (repo_init(&r, gitdir, worktree))
+ die("Couldn't init repo");
c = lookup_commit(&r, commit_oid);
@@
-38,7
+41,10
@@
static void test_get_commit_tree_in_graph(const char *gitdir,
struct commit *c;
struct tree *tree;
- repo_init(&r, gitdir, worktree);
+ setup_git_env(gitdir);
+
+ if (repo_init(&r, gitdir, worktree))
+ die("Couldn't init repo");
c = lookup_commit(&r, commit_oid);
git clone https://git.99rst.org/PROJECT