diff options
Diffstat (limited to 'lib/git')
-rw-r--r-- | lib/git/__init__.py | 1 | ||||
-rw-r--r-- | lib/git/remote.py | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/git/__init__.py b/lib/git/__init__.py index 041d69f7..45364b88 100644 --- a/lib/git/__init__.py +++ b/lib/git/__init__.py @@ -20,6 +20,7 @@ from git.repo import Repo from git.stats import Stats from git.utils import dashify from git.utils import touch +from git.remote import Remote __all__ = [ name for name, obj in locals().items() 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 |