fix un-assigned var issue
authorZhang Qiang <qiang.z.zhang@intel.com>
Mon, 14 May 2012 05:41:18 +0000 (13:41 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Mon, 14 May 2012 05:41:18 +0000 (13:41 +0800)
gitbuildsys/git.py

index 00c8765..2b7b7af 100644 (file)
@@ -99,6 +99,7 @@ class Git:
         """Return the branches list, current working branch is the first
         element.
         """
+        current_branch = None
         branches = []
         for line in self._exec_git('branch', ['--no-color']).splitlines():
             br = line.strip().split()[-1]