allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#6764] Parse 'tag: ' prefix in tag refs on git 1.8.3+
Date Sat, 08 Feb 2014 19:42:24 GMT
Updated Branches:
  refs/heads/db/6764 [created] e69f52054


[#6764] Parse 'tag: ' prefix in tag refs on git 1.8.3+

More details about the Git change in a similar bug report for a different
library at https://github.com/warner/python-versioneer/issues/11#issuecomment-22994407


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/e69f5205
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/e69f5205
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/e69f5205

Branch: refs/heads/db/6764
Commit: e69f520542e213a4e7ff2e94e28f3fecc4b8df2b
Parents: d6fe461
Author: Dave Brondsema <dave@brondsema.net>
Authored: Sat Feb 8 14:40:45 2014 -0500
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Sat Feb 8 14:40:45 2014 -0500

----------------------------------------------------------------------
 ForgeGit/forgegit/model/git_repo.py | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/e69f5205/ForgeGit/forgegit/model/git_repo.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/model/git_repo.py b/ForgeGit/forgegit/model/git_repo.py
index 09fca39..8b9d1f8 100644
--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -398,6 +398,10 @@ class GitImplementation(M.RepositoryImplementation):
                     hexsha, decoration = commit_lines[0].split('\x00')
                     refs = decoration.strip(' ()').split(
                         ', ') if decoration else []
+                    tag_prefix = 'tag: '  # introduced in git 1.8.3
+                    for i, ref in enumerate(refs):
+                        if ref.startswith(tag_prefix):
+                            refs[i] = ref[len(tag_prefix):]
                     renamed = {}
                     # merge commits don't have any --name-status output
                     if len(commit_lines) > 1:


Mime
View raw message