Skip to content

Commit 607119a

Browse files
Log output of git status. (#9361)
Something weird is going on with the release. --------- Co-authored-by: Brandon Duffany <brandon@buildbuddy.io>
1 parent 4923be8 commit 607119a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

release.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ def nonempty_lines(text):
4242
return lines
4343

4444
def workspace_is_clean():
45+
print('Checking if workspace is clean.')
4546
p = subprocess.Popen('git status --untracked-files=no --porcelain',
4647
shell=True, stdout=subprocess.PIPE,
4748
stderr=subprocess.STDOUT)
48-
return len(p.stdout.readlines()) == 0
49+
out = [l.decode() for l in p.stdout.readlines()]
50+
print('git status output:\n%s' % "\n".join(out))
51+
return len(out) == 0
4952

5053
def is_published_release(version_tag):
5154
github_token = os.environ.get('GITHUB_TOKEN')

0 commit comments

Comments
 (0)