forked from lix-project/lix
libfetchers: Replace regex to clarify intent
This commit is contained in:
parent
646af7325d
commit
770f7371f3
|
@ -28,9 +28,7 @@ static std::string readHead(const Path & path)
|
||||||
|
|
||||||
static bool isNotDotGitDirectory(const Path & path)
|
static bool isNotDotGitDirectory(const Path & path)
|
||||||
{
|
{
|
||||||
static const std::regex gitDirRegex("^(?:.*/)?\\.git$");
|
return baseNameOf(path) != ".git";
|
||||||
|
|
||||||
return not std::regex_match(path, gitDirRegex);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct GitInputScheme : InputScheme
|
struct GitInputScheme : InputScheme
|
||||||
|
|
Loading…
Reference in a new issue