projects
/
tools
/
gbs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ad7410
)
fix un-assigned var issue
author
Zhang Qiang
<qiang.z.zhang@intel.com>
Mon, 14 May 2012 05:41:18 +0000
(13:41 +0800)
committer
Zhang Qiang
<qiang.z.zhang@intel.com>
Mon, 14 May 2012 05:41:18 +0000
(13:41 +0800)
gitbuildsys/git.py
patch
|
blob
|
history
diff --git
a/gitbuildsys/git.py
b/gitbuildsys/git.py
index
00c8765
..
2b7b7af
100644
(file)
--- a/
gitbuildsys/git.py
+++ b/
gitbuildsys/git.py
@@
-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]