summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-21 01:45:14 +0200
committerDavid Robillard <d@drobilla.net>2019-10-21 01:45:14 +0200
commitb80c63dbcae4c95c2531d428e2750517fc11dcd3 (patch)
tree1b46e6f9b59f4c22dfcf34e28b2e575527e21504 /extras
parenta3600d61f63899e28f5208336b2c8371d8b331eb (diff)
downloadautowaf-b80c63dbcae4c95c2531d428e2750517fc11dcd3.tar.gz
autowaf-b80c63dbcae4c95c2531d428e2750517fc11dcd3.tar.bz2
autowaf-b80c63dbcae4c95c2531d428e2750517fc11dcd3.zip
Fix release command
Diffstat (limited to 'extras')
-rwxr-xr-xextras/autoship.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/extras/autoship.py b/extras/autoship.py
index 1b4f403..9e71908 100755
--- a/extras/autoship.py
+++ b/extras/autoship.py
@@ -468,6 +468,8 @@ def release(args, posts_dir=None, remote_dist_dir=None, dist_name=None):
def run_cmd(cmd):
if args.dry_run:
print(" ".join([shlex.quote(i) for i in cmd]))
+ else:
+ subprocess.check_call(cmd)
info = get_project_info()
name = info["name"]
@@ -500,8 +502,8 @@ def release(args, posts_dir=None, remote_dist_dir=None, dist_name=None):
# Check that working copy is clean
branch_cmd = ["git", "rev-parse", "--abbrev-ref", "HEAD"]
- branch = subprocess.check_output(branch_cmd).decode('ascii').strip()
- status_cmd = ["git", "status", "--porcelain", "-b", "--ignore-submodules"]
+ branch = subprocess.check_output(branch_cmd).decode("ascii").strip()
+ status_cmd = ["git", "status", "--porcelain", "-b"]
status = subprocess.check_output(status_cmd).decode("utf-8")
sys.stdout.write(status)
expected_status = "## %s...origin/%s\n" % (branch, branch)
@@ -553,6 +555,7 @@ def release(args, posts_dir=None, remote_dist_dir=None, dist_name=None):
report("Released %s %s" % (name, version))
report("Remember to upload posts and push to other remotes!")
+
def release_command():
ap = argparse.ArgumentParser(description="Release project")
ap.add_argument("group", help="Gitlab user or group for project")