]> git.lyx.org Git - features.git/commitdiff
Backport eceed02a90.
authorPavel Sanda <sanda@lyx.org>
Fri, 26 Jul 2019 19:42:19 +0000 (21:42 +0200)
committerPavel Sanda <sanda@lyx.org>
Fri, 26 Jul 2019 19:42:19 +0000 (21:42 +0200)
src/VCBackend.cpp
status.23x

index 957c69f585b48890ed38fdcfa1730da82f1dbf4c..02141dd48f24852e72011fc878095c49ca6d063d 100644 (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;
index 9e9cce9443611ec675aad54572f0d95de6de175a..cc615f005f6c2820cb1aabdd83b1da18eeb0347b 100644 (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