diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-08 09:21:25 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-08 09:24:32 +0100 |
commit | c7887c66483ffa9a839ecf1a53c5ef718dcd1d2d (patch) | |
tree | d1ad397204ded47871580a157011c5754ce5fbbb /git/repo/base.py | |
parent | 36cdfd3209909163549850709d7f12fdf1316434 (diff) | |
download | gitpython-c7887c66483ffa9a839ecf1a53c5ef718dcd1d2d.tar.gz |
Improve error handling of fetch/pull line parsing
Fixes #48
Diffstat (limited to 'git/repo/base.py')
-rw-r--r-- | git/repo/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/repo/base.py b/git/repo/base.py index 934a6f03..34fe4046 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -113,7 +113,7 @@ class Repo(object): :raise NoSuchPathError: :return: git.Repo """ epath = os.path.abspath(os.path.expandvars(os.path.expanduser(path or os.getcwd()))) - + self.git = None # should be set for __del__ not to fail in case we raise if not os.path.exists(epath): raise NoSuchPathError(epath) |