This commit is contained in:
Pavel Sanda 2019-07-26 21:42:19 +02:00
parent 4582edac1a
commit f4e700be2a
2 changed files with 5 additions and 1 deletions

View File

@ -2188,7 +2188,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;

View File

@ -31,6 +31,9 @@ What's new
- Avoid using text mode for unicode symbols representable in math mode (bug 9616).
- Do not issue error dialog when no tag is found in git repository for
tree-revision info inset.
* DOCUMENTATION AND LOCALIZATION