diff options
-rwxr-xr-x | release.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/release.py b/release.py index e94629626..60977d502 100755 --- a/release.py +++ b/release.py @@ -248,11 +248,14 @@ class Project: new_tag = self.package_name.upper() + '_' +\ self.package_version.replace('.', '_') - svn_base = self.exec_cmd('git config svn-remote.svn.url').strip() - url1 = svn_base + '/trunk' - url2 = svn_base + '/tags/' + new_tag - self.exec_cmd('svn copy %s %s -m "Tagged for release %s."' % (url1, url2, self.package_version)) + info = self.exec_cmd('git svn info | grep URL') + url1 = info[info.find(" "):].strip() + + end = url1.find("empathy") + end = url1.find("/", end) + url2 = url1[:end] + '/tags/' + new_tag + self.exec_cmd('svn copy %s %s -m "Tagged for release %s."' % (url1, url2, self.package_version)) self.exec_cmd('git tag -m "Tagged for release %s." %s' % ( self.package_version, new_tag)) def generate_news(self): |