Do not issue error dialog when no tag is found in git repo for tree-revision info.

Reported by Joel Kulesza.

Candidate for branch.
This commit is contained in:
Pavel Sanda 2019-07-25 14:31:20 +02:00
parent bdf8c3b530
commit eceed02a90

View File

@ -2190,7 +2190,8 @@ bool GIT::getTreeRevisionInfo()
}
doVCCommand("git describe --abbrev --dirty --long > " + quoteName(tmpf.toFilesystemEncoding()),
FileName(owner_->filePath()));
FileName(owner_->filePath()),
false); //git describe returns $?=128 when no tag found (but git repo still exists)
if (tmpf.empty())
return false;