[yocto] [PATCH 06/10][AUH] buildhistory.py: Add missing warning import. git.py: Fix last_commit method.
Aníbal Limón
anibal.limon at linux.intel.com
Mon Nov 9 14:01:37 PST 2015
Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
---
buildhistory.py | 3 ++-
git.py | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/buildhistory.py b/buildhistory.py
index 6eca6e1..2e442d2 100644
--- a/buildhistory.py
+++ b/buildhistory.py
@@ -20,8 +20,9 @@
import os
import logging as log
-from logging import info as I
from logging import debug as D
+from logging import info as I
+from logging import warning as W
from logging import error as E
from logging import critical as C
import sys
diff --git a/git.py b/git.py
index 3eebac3..9661364 100644
--- a/git.py
+++ b/git.py
@@ -88,7 +88,7 @@ class Git(object):
return self._cmd("clean -fd")
def last_commit(self, branch_name):
- return self._cmd("log --pretty=format:\"%H\" -1" + branch_name)
+ return self._cmd("log --pretty=format:\"%H\" -1 " + branch_name)
def ls_remote(self, repo_url=None, options=None, refs=None):
cmd = "ls-remote"
--
2.1.4
More information about the yocto
mailing list