%(' '.join(cmd), ret, error_str)
)
return False
- logger.debug('current commit id is %s' % stdout_str[0])
- return stdout_str[0]
+ stdout_str = cmdobj.stdout.read()
+ logger.debug('current commit id is %s' % stdout_str)
+ return stdout_str
def git_get_commit_date():
"""
%(' '.join(cmd), ret, error_str)
)
return False
- logger.debug('current commit date is %s' % stdout_str[0])
- return stdout_str[0]
+ stdout_str = cmdobj.stdout.read()
+ logger.debug('current commit date is %s' % stdout_str)
+ return stdout_str
# vim: autoindent smartindent tabstop=4 expandtab shiftwidth=4 softtabstop=4 nu enc=utf-8 cinwords=if,elif,else,for,while,try,except,finally,def,class