cmd = [
GIT,
'show', '--oneline',
- '%s' % refname,
- '|awk \'{print $1}\''
+ '%s' % refname
]
cmdobj = subprocess.Popen(
cmd,
)
return None
else:
- stdout_str = cmdobj.stdout.read()
+ stdout_str = cmdobj.stdout.read().split(" ")
logger.debug(
- 'found treeish "%s" for refspec "%s"' % (refname, stdout_str)
+ 'found treeish "%s" for refspec "%s", log: "%s"' % (
+ refname,
+ stdout_str[0],
+ " ".join(stdout_str[1:])
)
- return stdout_str
+ return stdout_str[0]
# 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