Changeset 3bc12bb in rtems-tools


Ignore:
Timestamp:
Nov 28, 2018, 10:18:48 PM (5 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
93821fe
Parents:
6d30de6
git-author:
Chris Johns <chrisj@…> (11/28/18 22:18:48)
git-committer:
Chris Johns <chrisj@…> (11/28/18 22:24:48)
Message:

rtemstoolkit/version: Remove the tailing - with a clean git repo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/version.py

    r6d30de6 r3bc12bb  
    184184        if repo.dirty():
    185185            modified = 'modified'
     186            revision_sep = '-'
    186187            sep = ' '
    187188        else:
    188189            modified = ''
     190            revision_sep = ''
    189191            sep = ''
    190         _revision = '%s-%s' % (head[0:12], modified)
     192        _revision = '%s%s%s' % (head[0:12], revision_sep, modified)
    191193        _version_str = '%s (%s%s%s)' % (_version, head[0:12], sep, modified)
    192194        _git = True
Note: See TracChangeset for help on using the changeset viewer.