libgit2/include/git2/sys
Russell Belfer 1fbeb2f04c Fix attribute lookup in index for bare repos
When using a bare repo with an index, libgit2 attempts to read
files from the index.  It caches those files based on the path
to the file, specifically the path to the directory that contains
the file.

If there is no working directory, we use `git_path_dirname_r` to
get the path to the containing directory.  However, for the
`.gitattributes` file in the root of the repository, this ends up
normalizing the containing path to `"."` instead of the empty
string and the lookup the `.gitattributes` data fails.

This adds a test of attribute lookups on bare repos and also
fixes the problem by simply rewriting `"."` to be `""`.
2014-09-15 21:59:23 -07:00
..
commit.h Add git_commit_amend API 2014-02-07 16:17:59 -08:00
config.h Merge pull request #2188 from libgit2/cmn/config-snapshot 2014-05-12 10:04:52 -07:00
diff.h Remove trace / add git_diff_perfdata struct + api 2014-05-02 09:21:33 -07:00
filter.h Use unsigned type for APIs with opt flag mask 2014-05-08 10:46:04 -07:00
index.h Clean up some documentation 2013-07-23 09:40:19 +02:00
mempack.h In-memory packing backend 2014-03-26 18:17:08 +01:00
odb_backend.h Fix remaining init_options inconsistencies 2014-05-02 09:21:33 -07:00
refdb_backend.h Fix remaining init_options inconsistencies 2014-05-02 09:21:33 -07:00
reflog.h reflog: move the reflog implementation into refdb_fs 2013-10-02 06:53:24 +02:00
refs.h Clean up some documentation 2013-07-23 09:40:19 +02:00
repository.h Fix attribute lookup in index for bare repos 2014-09-15 21:59:23 -07:00
transport.h Custom transport: minor cleanups 2014-08-14 08:52:20 -05:00