Fix git describe format for commits with a tag

Fixes openbmc/openbmc#1692

Change-Id: I84fffbaa453d918bcbf7bcb8100109ba8ba1be91
Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
diff --git a/meta-phosphor/common/recipes-core/os-release/os-release.bbappend b/meta-phosphor/common/recipes-core/os-release/os-release.bbappend
index 1ac195f..64f0fed 100644
--- a/meta-phosphor/common/recipes-core/os-release/os-release.bbappend
+++ b/meta-phosphor/common/recipes-core/os-release/os-release.bbappend
@@ -7,7 +7,7 @@
                 pass
 
 python() {
-        version_id = run_git(d, 'describe --dirty')
+        version_id = run_git(d, 'describe --dirty --long')
         if version_id:
                 d.setVar('VERSION_ID', version_id)
                 versionList = version_id.split('-')