From c80d727e374321573bb00e23876a67c77ff466e3 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 4 Jan 2015 13:48:29 +0100 Subject: Bumped version, updated changelog, reduced code smell There is more work to do though, as many imports are still incorrect. Also, there are still print statements --- git/refs/head.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'git/refs/head.py') diff --git a/git/refs/head.py b/git/refs/head.py index 6f36a956..acdd37d6 100644 --- a/git/refs/head.py +++ b/git/refs/head.py @@ -210,9 +210,8 @@ class Head(Reference): By default it is only allowed to checkout heads - everything else will leave the HEAD detached which is allowed and possible, but remains a special state that some tools might not be able to handle.""" - args = list() kwargs['f'] = force - if kwargs['f'] == False: + if kwargs['f'] is False: kwargs.pop('f') self.repo.git.checkout(self, **kwargs) -- cgit v1.2.1