Commit 5983e42e authored by Ayush Tiwari's avatar Ayush Tiwari

gitclone: Allow to raise error with output

parent 51fb4a35
......@@ -170,7 +170,10 @@ class Recipe(object):
command = [self.git_command, 'reset', '--hard']
if revision:
command.append(revision)
check_call(command, cwd=self.location)
try:
check_call(command, cwd=self.location)
except CalledProcessError, e:
print "Git Reset stdout output:\n", e.output
def install(self):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment