Commit 0fb6aafd authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Tobias Hunger

Git: Use HEAD as parent revision for 00000000

Change-Id: I4f583bb184fff00ea49a27de9df96aa348b81004
Reviewed-by: default avatarTobias Hunger <>
parent 5a6cbe08
......@@ -1043,6 +1043,11 @@ bool GitClient::synchronousParentRevisions(const QString &workingDirectory,
QByteArray outputTextData;
QByteArray errorText;
QStringList arguments;
if (parents && (revision == QLatin1String("00000000"))) { // Not Committed Yet
return true;
arguments << QLatin1String("rev-list") << QLatin1String(GitClient::noColorOption)
<< QLatin1String("--parents") << QLatin1String("--max-count=1") << revision;
if (!files.isEmpty()) {
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