Skip to content

Commit 48f0172

Browse files
committed
Add message for when there's nothing to publish
1 parent db86474 commit 48f0172

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mbed/mbed.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,6 +1705,9 @@ def publish(all_refs=None, msg=None, top=True):
17051705
if outgoing > 0:
17061706
action("Pushing local repository \"%s\" to remote \"%s\"" % (repo.name, repo.url))
17071707
repo.publish(all_refs)
1708+
else:
1709+
if top:
1710+
action("Nothing to publish to the remote repository (the source tree is unmodified)")
17081711
except ProcessException as e:
17091712
if e[0] != 1:
17101713
raise e

0 commit comments

Comments
 (0)