summaryrefslogtreecommitdiff
path: root/git/__init__.py
diff options
context:
space:
mode:
authorOdegard, Ken <ken.odegard@gmail.com>2017-07-09 22:07:31 +0200
committerOdegard, Ken <ken.odegard@gmail.com>2017-07-09 22:07:31 +0200
commitaba0494701292e916761076d6d9f8beafa44c421 (patch)
tree3ec1776eb8e1915d52f5799e9b030e6dba5943d8 /git/__init__.py
parentfeed81ea1a332dc415ea9010c8b5204473a51bdf (diff)
downloadgitpython-aba0494701292e916761076d6d9f8beafa44c421.tar.gz
Renamed refresh to setup and removed alias function & added unittest
Renamed to simplify and avoid issue with nose tests trying to use `setup` as a setup for testing. Unittest implements basic test for refreshing with a bad git path versus a good git path.
Diffstat (limited to 'git/__init__.py')
-rw-r--r--git/__init__.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/git/__init__.py b/git/__init__.py
index cc45efe1..7005cd60 100644
--- a/git/__init__.py
+++ b/git/__init__.py
@@ -58,19 +58,16 @@ from git.util import ( # @NoMove @IgnorePep8
__all__ = [name for name, obj in locals().items()
if not (name.startswith('_') or inspect.ismodule(obj))]
+
#{ Initialize git executable path
-def setup(path=None):
+def refresh(path=None):
"""Convenience method for setting the git executable path."""
if not Git.refresh(path=path):
return
if not FetchInfo.refresh():
return
-
-def refresh(path=None):
- """Convenience method for refreshing the git executable path."""
- setup(path=path)
#} END initialize git executable path
#################
-setup()
+refresh()
#################