libgit2/tests/repo
Patrick Steinhardt 0f31609611 repository: do not interpret all files as gitlinks in discovery
When trying to find a discovery, we walk up the directory
structure checking if there is a ".git" file or directory and, if
so, check its validity. But in the case that we've got a ".git"
file, we do not want to unconditionally assume that the file is
in fact a ".git" file and treat it as such, as we would error out
if it is not.

Fix the issue by only treating a file as a gitlink file if it
ends with "/.git". This allows users of the function to discover
a repository by handing in any path contained inside of a git
repository.
2016-11-14 10:53:08 +01:00
..
config.c Better search path sandboxing 2014-05-15 10:56:28 -07:00
discover.c repository: do not interpret all files as gitlinks in discovery 2016-11-14 10:53:08 +01:00
env.c repo::open: remove dead code, free buffers 2016-07-24 15:49:19 -04:00
getters.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
hashfile.c Introduce cl_assert_equal_oid 2014-07-01 14:40:16 -04:00
head.c Add tests for the annotated versions of ref-modifying functions 2015-03-16 16:57:30 +01:00
headtree.c repository: remove log message override for switching the active branch 2015-03-03 14:40:50 +01:00
init.c git_repository_init: include dotfiles when copying templates 2015-12-26 22:41:00 -06:00
message.c Fix some Windows warnings 2014-02-07 15:43:37 -08:00
new.c repository_new: test its bareness 2015-03-10 16:49:24 -04:00
open.c repo::open: remove dead code, free buffers 2016-07-24 15:49:19 -04:00
pathspec.c Fix compile error on Visual Studio 2014-05-27 23:36:07 +09:00
repo_helpers.c Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
repo_helpers.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
reservedname.c repo::reservedname: test a submodule update 2015-09-18 12:17:49 -04:00
setters.c config: borrow refcounted references 2015-03-03 18:35:12 +01:00
shallow.c Improve error propagation in shallow call 2014-02-18 14:05:30 -08:00
state.c repository: distinguish sequencer cherry-pick and revert 2015-11-20 13:19:23 -05:00