vcs/gitcmd: ResolveRevision: Use only stdout, ignore stderr for predictable command output parsing.

- This makes it so that warnings and other non-critical messages potentially printed to stderr do not mess up parsing of the expected stdout output.
- Command exit code being 0 is used to test if the command was successful (returned as `err` value from `Output`).
- Fixes #30.