summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-10-23 23:18:40 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-10-23 23:18:40 +0200
commitce9d81ac44d0a915ba23d5a032cede1bde321729 (patch)
tree6fc1c67a49b44247af41e1a3ff4a66c097b0ccc9
parent0869d7b4caa14ea17d6092a684af299da7545aa6 (diff)
downloadportato-ce9d81ac44d0a915ba23d5a032cede1bde321729.tar.gz
portato-ce9d81ac44d0a915ba23d5a032cede1bde321729.tar.bz2
portato-ce9d81ac44d0a915ba23d5a032cede1bde321729.zip
Honor branches different from master
Diffstat (limited to '')
-rw-r--r--plugins/new_version.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/new_version.py b/plugins/new_version.py
index fd8e5cd..7f110b5 100644
--- a/plugins/new_version.py
+++ b/plugins/new_version.py
@@ -44,9 +44,11 @@ class NewVersionFinder(WidgetPlugin):
def find_version (self, rev):
- remote_rev = Popen(['git', 'ls-remote', 'HEAD'], stdout = PIPE).communicate()[0].split('\t')
+ repo, branch = REPOURI.split('::')
+
+ remote_rev = Popen(['git', 'ls-remote', repo, branch], stdout = PIPE).communicate()[0].split('\t')
- if len(remote_rev) and not remote_rev[1] == 'HEAD':
+ if len(remote_rev) and remote_rev[1] not in (branch, 'refs/heads/'+branch, 'refs/tags/'+branch):
warning('NEW_VERSION :: Returned revision information looks strange: %s', str(remote_rev))
else:
remote_rev = remote_rev[0]