Commit 391094ed authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Git: Do not detect repository inside git dir

Change-Id: I74f7c7eab6dee584bd4c42499ce8e1613d008043
Reviewed-by: default avatarPetar Perisin <>
Reviewed-by: default avatarTobias Hunger <>
parent 0cabae0f
......@@ -365,6 +365,8 @@ const char *GitClient::decorateOption = "--decorate";
QString GitClient::findRepositoryForDirectory(const QString &dir)
if (dir.endsWith(QLatin1String("/.git")) || dir.contains(QLatin1String("/.git/")))
return QString();
// Find a directory to run git in:
const QString root = QDir::rootPath();
const QString home = QDir::homePath();
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