diff options
| author | Patrick Steinhardt <ps@pks.im> | 2016-11-04 11:59:52 +0100 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2017-02-13 11:07:52 +0100 |
| commit | 84f56cb05afe7a60501f310ba1329bb98ef8756d (patch) | |
| tree | 69c54d4ce619b753d64ec09b4360cfcc4f21df1e /tests/worktree/merge.c | |
| parent | 384518d09dc16b8a7dae22069e0c612e4b65c5e8 (diff) | |
| download | libgit2-84f56cb05afe7a60501f310ba1329bb98ef8756d.tar.gz | |
repository: rename `path_repository` and `path_gitlink`
The `path_repository` variable is actually confusing to think
about, as it is not always clear what the repository actually is.
It may either be the path to the folder containing worktree and
.git directory, the path to .git itself, a worktree or something
entirely different. Actually, the intent of the variable is to
hold the path to the gitdir, which is either the .git directory
or the bare repository.
Rename the variable to `gitdir` to avoid confusion. While at it,
also rename `path_gitlink` to `gitlink` to improve consistency.
Diffstat (limited to 'tests/worktree/merge.c')
| -rw-r--r-- | tests/worktree/merge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/worktree/merge.c b/tests/worktree/merge.c index 8221e4fc1..36cc2a6c1 100644 --- a/tests/worktree/merge.c +++ b/tests/worktree/merge.c @@ -72,7 +72,7 @@ void test_worktree_merge__merge_setup(void) for (i = 0; i < ARRAY_SIZE(merge_files); i++) { git_buf_clear(&path); cl_git_pass(git_buf_printf(&path, "%s/%s", - fixture.worktree->path_repository, merge_files[i])); + fixture.worktree->gitdir, merge_files[i])); cl_assert(git_path_exists(path.ptr)); } |
