Commit 89091d36 by Etienne Samson

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.
parent 8455a270
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment