Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Uyuni:Utils
tito
0012-suse-git-remote.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0012-suse-git-remote.patch of Package tito
--- a/src/tito/tagger/susetagger.py 2021-09-13 10:28:06.469275751 +0200 +++ b/src/tito/tagger/susetagger.py 2021-09-13 10:33:24.789426246 +0200 @@ -11,6 +11,7 @@ """ import os import re +import sys try: from StringIO import StringIO except ImportError: @@ -43,6 +44,11 @@ self.changes_file_name) self._new_changelog_msg = "Initial package release" self.changelog_regex = re.compile('^%s\s-\s%s' % (self.today, self.git_email)) + self.remote = run_command(" git for-each-ref --format='%(upstream:short)' \"$(git symbolic-ref -q HEAD)\"").split('/')[0] + if self.remote == "": + print("ERROR: Your current branch does not track a remote branch!") + sys.exit(1) + def _make_changelog(self): """ @@ -168,6 +174,6 @@ print("Created tag: %s" % new_tag) print(" View: git show HEAD") print(" Undo: tito tag -u") - print(" Push: git push origin HEAD && git push origin %s" % new_tag) - print("or Push: git push origin HEAD && git push origin --tags") + print(" Push: git push {0} HEAD && git push {0} {1}".format(self.remote, new_tag)) + print("or Push: git push {0} HEAD && git push {0} --tags".format(self.remote))
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor