diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-19 21:31:55 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-19 21:31:55 +0200 |
commit | 53d26977f1aff8289f13c02ee672349d78eeb2f0 (patch) | |
tree | 2f19b97289d9d0af2eeea894dcc1f51e627261cf /lib/git/remote.py | |
parent | cbf957a36f5ed47c4387ee8069c56b16d1b4f558 (diff) | |
download | gitpython-53d26977f1aff8289f13c02ee672349d78eeb2f0.tar.gz |
remote: added tests for creation and removal, finishing the remote interface
Diffstat (limited to 'lib/git/remote.py')
-rw-r--r-- | lib/git/remote.py | 5 |
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 |