summaryrefslogtreecommitdiff
path: root/git/refs/head.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/refs/head.py')
-rw-r--r--git/refs/head.py3
1 files changed, 1 insertions, 2 deletions
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)