diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-11-09 16:02:06 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-11-09 16:02:06 +0000 |
| commit | 3368e09b69057abfbe5548c8e29467e181212024 (patch) | |
| tree | b0d665cf9bac880837c42d0e5bdbf6163e1efa98 /wscript | |
| parent | 684ec3d7ba201649f33e9497ffd6cf57ef5b4cbf (diff) | |
Don't fail to build when we're on a merge commit.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -560,6 +560,8 @@ def git_revision(): cmd = "LANG= git log --abbrev HEAD^..HEAD ." output = subprocess.Popen(cmd, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0].splitlines() + if len(output) == 0: + return None o = output[0].decode('utf-8') return o.replace("commit ", "")[0:10] |
