summaryrefslogtreecommitdiff
path: root/test/git/test_repo.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-12-03 16:31:07 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-12-03 16:31:07 +0100
commitc05ef0e7543c2845fd431420509476537fefe2b0 (patch)
tree75393ae080690acd035108d698d3c5a467076ebb /test/git/test_repo.py
parent1eae9d1532e037a4eb08aaee79ff3233d2737f31 (diff)
downloadgitpython-c05ef0e7543c2845fd431420509476537fefe2b0.tar.gz
repo: renamed directories to more descriptive identifiers and made them safer to use in case of bare repositories
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r--test/git/test_repo.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py
index e94a45bd..0e913ff1 100644
--- a/test/git/test_repo.py
+++ b/test/git/test_repo.py
@@ -21,11 +21,11 @@ class TestRepo(TestBase):
Repo("repos/foobar")
def test_repo_creation_from_different_paths(self):
- r_from_gitdir = Repo(self.rorepo.path)
- assert r_from_gitdir.path == self.rorepo.path
- assert r_from_gitdir.path.endswith('.git')
- assert not self.rorepo.git.git_dir.endswith('.git')
- assert r_from_gitdir.git.git_dir == self.rorepo.git.git_dir
+ r_from_gitdir = Repo(self.rorepo.git_dir)
+ assert r_from_gitdir.git_dir == self.rorepo.git_dir
+ assert r_from_gitdir.git_dir.endswith('.git')
+ assert not self.rorepo.git.working_dir.endswith('.git')
+ assert r_from_gitdir.git.working_dir == self.rorepo.git.working_dir
def test_description(self):
txt = "Test repository"
@@ -225,7 +225,7 @@ class TestRepo(TestBase):
assert_true( len( tlist ) < sum( len(t) for t in tlist ) ) # test for single-char bug
def test_untracked_files(self):
- base = self.rorepo.git.git_dir
+ base = self.rorepo.working_tree_dir
files = ( join_path_native(base, "__test_myfile"),
join_path_native(base, "__test_other_file") )
num_recently_untracked = 0