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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/refs/head.py b/git/refs/head.py
index 338efce9..4b9bf33c 100644
--- a/git/refs/head.py
+++ b/git/refs/head.py
@@ -142,7 +142,7 @@ class Head(Reference):
flag = "-D"
repo.git.branch(flag, *heads)
- def set_tracking_branch(self, remote_reference: 'RemoteReference') -> 'Head':
+ def set_tracking_branch(self, remote_reference: Union['RemoteReference', None]) -> 'Head':
"""
Configure this branch to track the given remote reference. This will alter
this branch's configuration accordingly.