Check that .git exists.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
We need at least one branch or things don't go right atm.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Add TODO comment about special case.

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

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Print ERROR when error happens.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Don't print usage as it makes it very hard to see what actual error is.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Check that spec file exists as well.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Make sure ls prints one entry per line so those can be counted properly.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Make sure git interprets the tags as tags and not paths.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Fix version in changelog when no --ver is given to gp_release.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Hide error when return value of git is != 0.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Add -V verbose options to make things less verbose by default.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
When basetag is not defined use the Version from .spec file if possible.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Initialize the git tree properly when ever --auto is used.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
More and more testing, so we can just drop this notification.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Drop --unpack-to=* from --auto and fix tarball handling problem introduced with commit a1ee87afa38ccdd6754abcb1a5b5eb3095fd3e76

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Improve message a bit.

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

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
When there is no patches in VENDOR-master there is only 3 parameters
in _src. So lets not enforce 4 params.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
Cleanup gp_release help a bit.

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