summaryrefslogtreecommitdiff
path: root/refs/remote.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-11-24 12:30:51 +0100
committerSebastian Thiel <byronimo@gmail.com>2010-11-24 12:30:51 +0100
commita17c43d0662bab137903075f2cff34bcabc7e1d1 (patch)
treef757e77c85213da7c53d129476430745465935b0 /refs/remote.py
parent8dd51f1d63fa5ee704c2bdf4cb607bb6a71817d2 (diff)
downloadgitpython-a17c43d0662bab137903075f2cff34bcabc7e1d1.tar.gz
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
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")