diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-05 20:14:39 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-05 20:14:39 +0000 |
| commit | 589cccafd4ec67b4e7a068cf1cb3f4b795224e16 (patch) | |
| tree | 15fda80c4c9c576b1177126aa6c5be92f7c45d2f | |
| parent | 372dcbe1ef6b04708d7e2d89d503bd181e49958d (diff) | |
Check for uncommitted changes.
| -rwxr-xr-x | release | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -30,8 +30,10 @@ def check_diff_with_user(): print 'Aborted' sys.exit(1) -command("git checkout master") - +if os.popen('git status -s').read() != '': + print '%s: uncommitted changes exist.' % sys.argv[0] + sys.exit(1) + new_version = version.rewrite_wscript(version.Version.to_release) version.append_to_changelog(new_version) |
