Do not continue if we are not in proper git directory.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
No need to cleanup if .git is missing.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
As this is called usually before other checks lets hide errors by doing nothing when there is nothing to do.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
When git tree is empty then we need additional checks.

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 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>
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>

Cleaned up a little

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
More and more testing, so we can just drop this notification.

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>
Move line to -V and improve guide a bit.

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