mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Update publish_betas command
This commit is contained in:
parent
a7e7b0d381
commit
c7d4af9ab7
@ -63,10 +63,9 @@ def build_cache_dir():
|
||||
return ans
|
||||
|
||||
|
||||
def require_git_master():
|
||||
if subprocess.check_output(['git', 'symbolic-ref', '--short', 'HEAD']).strip() != 'master':
|
||||
print >>sys.stderr, 'You must be in the master git branch'
|
||||
raise SystemExit(1)
|
||||
def require_git_master(branch='master'):
|
||||
if subprocess.check_output(['git', 'symbolic-ref', '--short', 'HEAD']).strip() != branch:
|
||||
raise SystemExit('You must be in the {} got branch'.format(branch))
|
||||
|
||||
|
||||
def require_clean_git():
|
||||
|
@ -157,6 +157,7 @@ class PublishBetas(Command):
|
||||
|
||||
def pre_sub_commands(self, opts):
|
||||
require_clean_git()
|
||||
require_git_master('vs2015')
|
||||
|
||||
def run(self, opts):
|
||||
dist = self.a(self.j(self.d(self.SRC), 'dist'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user