summaryrefslogtreecommitdiff
path: root/lib/git/repo.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-07-26 22:52:34 +0200
committerMichael Trier <mtrier@gmail.com>2008-07-28 00:45:24 -0400
commitbfdc8e26d36833b3a7106c306fdbe6d38dec817e (patch)
tree501def85e5660674574bba39564f98b5eda484b8 /lib/git/repo.py
parent7d6332820eaad3a6d3b0abc93424469a8ef7083a (diff)
downloadgitpython-bfdc8e26d36833b3a7106c306fdbe6d38dec817e.tar.gz
Fix use of bare repositories.
(cherry picked from commit 80f8a18a69e307f6ea0bfeb14791fc75e239faa2)
Diffstat (limited to 'lib/git/repo.py')
-rw-r--r--lib/git/repo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py
index c03adeba..1ceb7449 100644
--- a/lib/git/repo.py
+++ b/lib/git/repo.py
@@ -44,7 +44,8 @@ class Repo(object):
while curpath:
if is_git_dir(curpath):
self.bare = True
- self.path, self.wd = curpath
+ self.path = curpath
+ self.wd = curpath
break
gitpath = os.path.join(curpath, '.git')
if is_git_dir(gitpath):