Unverified Commit 8c47aba2 authored by René Jochum's avatar René Jochum
Browse files

Add tag pushes and another debug line

Signed-off-by: René Jochum <rene@jochums.at
parent 8e688360
......@@ -6,15 +6,16 @@ This document describes changes between each past release.
0.0.3 (unreleased)
------------------
- Nothing changed yet.
- Add another debug line (to show CWD changes). [pcdummy]
- Add tag pushes. [pcdummy]
0.0.2 (2018-04-21)
------------------
- Fixup classifiers [pcdummy].
- Fixup classifiers. [pcdummy]
0.0.1 (2018-04-21)
------------------
- Initial Release [pcdummy].
\ No newline at end of file
- Initial Release. [pcdummy]
\ No newline at end of file
......@@ -75,9 +75,10 @@ class Repo(object):
repo_dir_exists = True
if not os.path.exists(repo_dir):
repo_dir_exists = False
logging.debug('Makedirs: "%s"', repo_dir)
logging.debug('%s: Makedirs: "%s"' % (self, repo_dir))
os.makedirs(repo_dir, mode=0o700)
logging.debug('%s: cd %s' % (self, os.path.abspath(repo_dir)))
with Cd(repo_dir):
if not repo_dir_exists:
run_cmd(['git', 'clone', '--bare', shlex.quote(repo_config['source']), '.'])
......@@ -125,7 +126,14 @@ class Repo(object):
args.append('--force')
if prune:
args.append('--prune')
args.extend(['dest', '--all'])
args.extend(['dest'])
args = ['git', 'push', '--tags']
if force:
args.append('--force')
if prune:
args.append('--prune')
args.append('dest')
run_cmd(args)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment