From 89df64132ccd76568ade04b5cf4e68cb67f0c5c0 Mon Sep 17 00:00:00 2001 From: Luc Ritchie Date: Fri, 14 Sep 2018 13:10:37 -0400 Subject: Respect _common_dir when finding repository config file Among other things, remotes are now correctly identified when in a separate worktree. --- git/test/test_repo.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'git/test') diff --git a/git/test/test_repo.py b/git/test/test_repo.py index e65ead89..7fc49f3b 100644 --- a/git/test/test_repo.py +++ b/git/test/test_repo.py @@ -974,6 +974,11 @@ class TestRepo(TestBase): commit = repo.head.commit self.assertIsInstance(commit, Object) + # this ensures we can read the remotes, which confirms we're reading + # the config correctly. + origin = repo.remotes.origin + self.assertIsInstance(origin, Remote) + self.assertIsInstance(repo.heads['aaaaaaaa'], Head) @with_rw_directory -- cgit v1.2.1