diff options
author | Russell Belfer <arrbee@arrbee.com> | 2012-02-01 01:59:32 +0400 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2012-02-01 01:59:32 +0400 |
commit | adc9bdb3b1428b8edf067ab17c26ef15ec1ac8a7 (patch) | |
tree | 779de1400c8c3385ab21fde0bac47b96081c50aa /src/attr_file.h | |
parent | 5d3cd4e309517a8ab2b553ad0839493ba45bb97d (diff) |
Fix attr path is_dir check
When building an attr path object, the code that checks if the
file is a directory was evaluating the file as a relative path
to the current working directory, instead of using the repo root.
This lead to inconsistent behavior.
Diffstat (limited to 'src/attr_file.h')
-rw-r--r-- | src/attr_file.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attr_file.h b/src/attr_file.h index 304c7a854..dcb66c577 100644 --- a/src/attr_file.h +++ b/src/attr_file.h @@ -110,7 +110,7 @@ extern git_attr_assignment *git_attr_rule__lookup_assignment( git_attr_rule *rule, const char *name); extern int git_attr_path__init( - git_attr_path *info, const char *path); + git_attr_path *info, const char *path, const char *base); extern int git_attr_assignment__parse( git_repository *repo, /* needed to expand macros */ |