summaryrefslogtreecommitdiff
path: root/lib/git/remote.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/remote.py')
-rw-r--r--lib/git/remote.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/git/remote.py b/lib/git/remote.py
index 842ad2f3..24efd900 100644
--- a/lib/git/remote.py
+++ b/lib/git/remote.py
@@ -151,7 +151,7 @@ class Remote(LazyMixin, Iterable):
Raise
GitCommandError in case an origin with that name already exists
"""
- self.repo.git.remote( "add", name, url, **kwargs )
+ repo.git.remote( "add", name, url, **kwargs )
return cls(repo, name)
# add is an alias
@@ -164,6 +164,9 @@ class Remote(LazyMixin, Iterable):
"""
repo.git.remote("rm", name)
+ # alias
+ rm = remove
+
def rename(self, new_name):
"""
Rename self to the given new_name