Commit d5aa9f36 authored by Milian Wolff's avatar Milian Wolff
Browse files

Check for .git/HEAD directly, instead of cd'ing into .git first.

Should be faster, less code, and functionality wise the same.
parent d641fca7
......@@ -283,7 +283,7 @@ bool GitPlugin::isValidDirectory(const QUrl & dirPath)
QDir dir=dotGitDirectory(dirPath);
return".git")) && dir.exists(QStringLiteral("HEAD"));
return dir.exists(QStringLiteral(".git/HEAD"));
bool GitPlugin::isVersionControlled(const QUrl &path)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment