Name |
Last commit
|
Last update |
---|---|---|
.. | ||
config.c | ||
discover.c | ||
env.c | ||
getters.c | ||
hashfile.c | ||
head.c | ||
headtree.c | ||
init.c | ||
message.c | ||
new.c | ||
open.c | ||
pathspec.c | ||
repo_helpers.c | ||
repo_helpers.h | ||
reservedname.c | ||
setters.c | ||
shallow.c | ||
state.c |
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.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
config.c | Loading commit data... | |
discover.c | Loading commit data... | |
env.c | Loading commit data... | |
getters.c | Loading commit data... | |
hashfile.c | Loading commit data... | |
head.c | Loading commit data... | |
headtree.c | Loading commit data... | |
init.c | Loading commit data... | |
message.c | Loading commit data... | |
new.c | Loading commit data... | |
open.c | Loading commit data... | |
pathspec.c | Loading commit data... | |
repo_helpers.c | Loading commit data... | |
repo_helpers.h | Loading commit data... | |
reservedname.c | Loading commit data... | |
setters.c | Loading commit data... | |
shallow.c | Loading commit data... | |
state.c | Loading commit data... |