summaryrefslogtreecommitdiff
path: root/src/attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/attr.c')
-rw-r--r--src/attr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/attr.c b/src/attr.c
index 14eab5b46..cd704a490 100644
--- a/src/attr.c
+++ b/src/attr.c
@@ -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;