From a17c43d0662bab137903075f2cff34bcabc7e1d1 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 24 Nov 2010 12:30:51 +0100 Subject: Made previously protected methods public to introduce a method with reflog support which cannot be exposed using the respective property. Ref-Creation is now fully implemented in python. For details, see doc/source/changes.rst --- refs/remote.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'refs/remote.py') 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") -- cgit v1.2.3