Skip to content

Commit

Permalink
Add 'rosdistro sync' to the commit message when no rosdistro has been…
Browse files Browse the repository at this point in the history
… selected (ros-infrastructure#196)

Signed-off-by: Hunter L. Allen <hunterlallen@protonmail.com>
  • Loading branch information
allenh1 committed Jun 10, 2019
1 parent 210f812 commit 6d6c075
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superflore/generators/ebuild/overlay_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ def commit_changes(self, distro):
info('Committing to branch {0}...'.format(self.branch_name))
if distro == 'all':
commit_msg = 'regenerate all distros, {0}'
else:
elif distro:
commit_msg = 'regenerate ros-{1}, {0}'
else:
commit_msg = 'rosdistro sync, {0}'
commit_msg = commit_msg.format(time.ctime(), distro)
self.repo.git.commit(m='{0}'.format(commit_msg))

Expand Down

0 comments on commit 6d6c075

Please sign in to comment.