summaryrefslogtreecommitdiff
path: root/refs/remote.py
diff options
context:
space:
mode:
Diffstat (limited to 'refs/remote.py')
-rw-r--r--refs/remote.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/refs/remote.py b/refs/remote.py
index 85dc0f1e..b7b07d4b 100644
--- a/refs/remote.py
+++ b/refs/remote.py
@@ -56,3 +56,8 @@ class RemoteReference(Head):
except OSError:
pass
# END for each ref
+
+ @classmethod
+ def create(cls, *args, **kwargs):
+ """Used to disable this method"""
+ raise TypeError("Cannot explicitly create remote references")