The `dirname` and `dirbase` methods have been replaced with the Android implementation, which is actually compilant to some kind of standard. A new method `topdir` has been added, which returns the topmost directory in a path. These changes fix issue #49: `gitfo_prettify_dir_path` converts "./.git/" to ".git/", so the code at src/repository.c:190 goes out of bounds when trying to find the topmost directory. The new `git__topdir` method handles this gracefully, and the fixed `git__dirname` now returns the proper value for the repository's working dir. E.g. /repo/.git/ ==> working dir '/repo/' .git/ ==> working dir '.' Signed-off-by: Vicent Marti <tanoku@gmail.com>
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
resources | Loading commit data... | |
.gitignore | Loading commit data... | |
NAMING | Loading commit data... | |
t00-core.c | Loading commit data... | |
t01-data.h | Loading commit data... | |
t01-rawobj.c | Loading commit data... | |
t02-data.h | Loading commit data... | |
t02-objread.c | Loading commit data... | |
t02-oids.h | Loading commit data... | |
t03-objwrite.c | Loading commit data... | |
t04-commit.c | Loading commit data... | |
t05-revwalk.c | Loading commit data... | |
t06-index.c | Loading commit data... | |
t07-hashtable.c | Loading commit data... | |
t08-tag.c | Loading commit data... | |
t09-tree.c | Loading commit data... | |
t10-refs.c | Loading commit data... | |
test_helpers.c | Loading commit data... | |
test_helpers.h | Loading commit data... | |
test_lib.c | Loading commit data... | |
test_lib.h | Loading commit data... | |
test_main.c | Loading commit data... | |
tests.supp | Loading commit data... |