From 82a2ef92c7855424fec58deef3591b25acfe8318 Mon Sep 17 00:00:00 2001 From: Zhang Qiang Date: Mon, 14 May 2012 13:41:18 +0800 Subject: [PATCH] fix un-assigned var issue --- gitbuildsys/git.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gitbuildsys/git.py b/gitbuildsys/git.py index 00c8765..2b7b7af 100644 --- 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] -- 2.7.4