diff options
Diffstat (limited to 'src/attr.c')
-rw-r--r-- | src/attr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/attr.c b/src/attr.c index 05b0c1b3c..1decb5ba8 100644 --- a/src/attr.c +++ b/src/attr.c @@ -426,6 +426,8 @@ static int collect_attr_files( error = git_path_dirname_r(&dir, path); if (error < 0) goto cleanup; + if (dir.size == 1 && dir.ptr[0] == '.') + git_buf_clear(&dir); /* in precendence order highest to lowest: * - $GIT_DIR/info/attributes |