Hide error when return value of git is != 0.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>