Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-02-01 01:59:32 +0400
committerRussell Belfer <arrbee@arrbee.com>2012-02-01 01:59:32 +0400
commitadc9bdb3b1428b8edf067ab17c26ef15ec1ac8a7 (patch)
tree779de1400c8c3385ab21fde0bac47b96081c50aa /src/attr_file.h
parent5d3cd4e309517a8ab2b553ad0839493ba45bb97d (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.h2
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 */