Always produce a version when describing a repository
authorKalle Vahlman <kalle.vahlman@movial.com>
Thu, 14 May 2009 08:23:39 +0000 (11:23 +0300)
committerKalle Vahlman <kalle.vahlman@movial.com>
Thu, 14 May 2009 08:23:39 +0000 (11:23 +0300)
matrix/git.py

index 18b0cd4..cca7e12 100644 (file)
@@ -272,7 +272,7 @@ def archive(name, arch_name, prefix=None, treeish='HEAD'):
                        os.remove(arch_name)
 
 def describe(name,branch='HEAD'):
-       cmd={'args':['describe',branch],'workdir':name}
+       cmd={'args':['describe','--always',branch],'workdir':name}
        try:
                call(quiet=True,fail=True,**cmd)
                res=call_output(**cmd)