Changeset c203601


Ignore:
Timestamp:
Mar 23, 2017, 7:45:41 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
Children:
9189c42
Parents:
f5bb097
Message:

this_version.py: show status if tree is not clean

File:
1 edited

Legend:

Unmodified
Added
Removed
  • this_version.py

    rf5bb097 rc203601  
    8888    gitcmd.append('HEAD')
    8989    try:
    90         subprocess.check_output(gitcmd).strip().decode('utf8')
    91     except Exception as e:
     90        output = subprocess.check_output(gitcmd)
     91    except subprocess.CalledProcessError:
     92        try:
     93            import sys
     94            sys.stdout.write('Info: current git tree is not clean\n')
     95            gitstatus = subprocess.check_output(['git', 'status'])
     96            sys.stdout.write(gitstatus.decode('utf8'))
     97        except Exception:
     98            pass
    9299        gitsha += '+mods'
    93100    return gitsha
Note: See TracChangeset for help on using the changeset viewer.