diff options
author | Etienne Samson <samson.etienne@gmail.com> | 2018-07-06 20:24:21 +0000 |
---|---|---|
committer | Etienne Samson <samson.etienne@gmail.com> | 2018-07-06 22:24:57 +0200 |
commit | 89091d36c47299ee374d50a278c7d676911f3e0d (patch) | |
tree | dac393a682cdfc708eb00524c8dee22ac2c1fff6 | |
parent | 8455a2709f8c2fabf0df775a193b9ef72bb21e43 (diff) | |
download | libgit2-89091d36c47299ee374d50a278c7d676911f3e0d.tar.gz |
tests: fix a relative pathname issue
The path given to `git_index_add_bypath` is relative to the root of the
repository. That `describe/file` path is relative to the root of the
sandbox directory, hence if I add the missing `cl_git_pass` I rightfully
get an error that `$SANDBOX/describe/describe/file doesn't exist`.
The path is thus changed to be made relative to the repository, which
makes the failure go away and "restore" the test.
-rw-r--r-- | tests/describe/t6120.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/describe/t6120.c b/tests/describe/t6120.c index d254de8ed..74f8f2e45 100644 --- a/tests/describe/t6120.c +++ b/tests/describe/t6120.c @@ -104,7 +104,7 @@ static void commit_and_tag( cl_git_append2file("describe/file", "\n"); - cl_git_pass(git_index_add_bypath(index, "describe/file")); + cl_git_pass(git_index_add_bypath(index, "file")); cl_git_pass(git_index_write(index)); *time += 10; |