Commit 091bd738 by Edward Thomson

attr: ensure lookups are on repo-relative paths

Attribute lookups are done on paths relative to the repository.  Fail if
erroneously presented with an absolute path.
parent 3d8749d3
......@@ -629,6 +629,8 @@ static int collect_attr_files(
const char *workdir = git_repository_workdir(repo);
attr_walk_up_info info = { NULL };
GIT_ASSERT(!git_path_is_absolute(path));
if ((error = attr_setup(repo, attr_session, opts)) < 0)
return error;
......
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