]> git.lyx.org Git - lyx.git/commitdiff
Do not issue error dialog when no tag is found in git repo for tree-revision info.
authorPavel Sanda <sanda@lyx.org>
Thu, 25 Jul 2019 12:31:20 +0000 (14:31 +0200)
committerPavel Sanda <sanda@lyx.org>
Thu, 25 Jul 2019 12:31:20 +0000 (14:31 +0200)
Reported by Joel Kulesza.

Candidate for branch.

src/VCBackend.cpp

index 3a4ecb4f0538436563fad01d34a5665ad5929d1d..0338e674c2387bc56c0f8bf174b68aca9fff0f14 100644 (file)
@@ -2190,7 +2190,8 @@ bool GIT::getTreeRevisionInfo()
        }
 
        doVCCommand("git describe --abbrev --dirty --long > " + quoteName(tmpf.toFilesystemEncoding()),
        }
 
        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;
 
        if (tmpf.empty())
                return false;