cmd_changelog: conform to new API of git-buildpackage
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 4 Jul 2012 09:55:13 +0000 (12:55 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 10 Aug 2012 13:37:09 +0000 (16:37 +0300)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gitbuildsys/cmd_changelog.py

index b7e8621..c21b1ce 100644 (file)
@@ -58,7 +58,7 @@ def get_version(git_repo, commit):
     Construct version from commit using rev-parse.
     Set version to <tag>@<sha1> or <sha1> if tag is not found.
     """
-    version = git_repo.rev_parse(commit, ['--short'])
+    version = git_repo.rev_parse(commit, short=7)
     try:
         version = "%s@%s" % (git_repo.find_tag(commit), version)
     except GitRepositoryError:
@@ -79,7 +79,7 @@ def make_log_entries(commits, git_repo):
     for commit in commits:
         commit_info =  git_repo.get_commit_info(commit)
         entries.append("- %s" % commit_info["subject"])
-        prevauthor = commit_info["author"]
+        prevauthor = commit_info["author"].name
     return entries