This gets rid of the annoying "fatal: Needed a single revision"
messages that were printed in addition to StGit's own error message.
Signed-off-by: Karl Hasselström <kha@treskal.com>
"""Parse the string and return a verified SHA1 id
"""
try:
"""Parse the string and return a verified SHA1 id
"""
try:
- return GRun('git-rev-parse', '--verify', git_id).output_one_line()
+ return GRun('git-rev-parse', '--verify', git_id
+ ).discard_stderr().output_one_line()
except GitRunException:
raise GitException, 'Unknown revision: %s' % git_id
except GitRunException:
raise GitException, 'Unknown revision: %s' % git_id