Merge: src/platforms: fallback to version field "0" on error when asking for a git_re...
authorJean Privat <jean@pryen.org>
Sat, 21 May 2016 05:40:13 +0000 (01:40 -0400)
committerJean Privat <jean@pryen.org>
Sat, 21 May 2016 05:40:13 +0000 (01:40 -0400)
commite64164276317dab27de8adc453f73ba945f89b8d
tree42b05c5208d657c176c36ffa023cb7d01932d69a
parentc0bed41fb03af8de1dcdceacfb7895d3bf7ab6a2
parentd4df7ee205b1559172e3d2a587599b182a25553f
Merge: src/platforms: fallback to version field "0" on error when asking for a git_revision

The _app.nit_ annotation `version` sets the version of mobile app packages (.apk and .app). For example, `version(1, 5, git_revision)` may produce the version string "1.5.6b42a7c".

This PR fixes an error when asking for a `git_revision` but the call to `git rev-parse` fails.
Note that the normal git error is printed before the nitc warning message, so debugging should be easy.

Close #2111

Pull-Request: #2113
Reviewed-by: Jean Privat <jean@pryen.org>