summaryrefslogtreecommitdiff
path: root/lib/git/repo.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/repo.py')
-rw-r--r--lib/git/repo.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py
index d39f11d1..aba6cff0 100644
--- a/lib/git/repo.py
+++ b/lib/git/repo.py
@@ -66,7 +66,9 @@ class Repo(object):
repo = Repo("/Users/mtrier/Development/git-python")
repo = Repo("/Users/mtrier/Development/git-python.git")
-
+ repo = Repo("~/Development/git-python.git")
+ repo = Repo("$REPOSITORIES/Development/git-python.git")
+
Raises
InvalidGitRepositoryError or NoSuchPathError
@@ -74,7 +76,7 @@ class Repo(object):
``git.Repo``
"""
- epath = os.path.abspath(os.path.expanduser(path or os.getcwd()))
+ epath = os.path.abspath(os.path.expandvars(os.path.expanduser(path or os.getcwd())))
if not os.path.exists(epath):
raise NoSuchPathError(epath)