The Repository.describe() function is used by the 'publish' command. We
only need the first line of the description for the commit message
rather than the raw output (which contains a new line).
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
def describe(self, commit):
"""Use git describe --all on the given commit."""
return self.run(['git', 'describe', '--all', commit.sha1]
- ).discard_stderr().discard_exitcode().raw_output()
+ ).discard_stderr().discard_exitcode().output_one_line()
def simple_merge(self, base, ours, theirs):
index = self.temp_index()
try: