When getting info from the latest commit, don't search all refs but only
branches. We don't get correct data from refs/tags/* or refs/notest/*,
for example.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
"""Guess arguments, if not defined by the user"""
# Get the latest commit in the repo
log.debug("Guessing arguments from the latest commit")
- msg = repo.run_cmd(['log', '-1', '--all', '--format=%b'])
+ msg = repo.run_cmd(['log', '-1', '--branches', '--format=%b'])
for line in msg.splitlines():
split = line.split(':', 1)
if len(split) != 2: