summaryrefslogtreecommitdiff
path: root/git/test/test_repo.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/test/test_repo.py')
-rw-r--r--git/test/test_repo.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/git/test/test_repo.py b/git/test/test_repo.py
index 25acbec9..0153d886 100644
--- a/git/test/test_repo.py
+++ b/git/test/test_repo.py
@@ -383,6 +383,16 @@ class TestRepo(TestBase):
assert self.rorepo == self.rorepo and not (self.rorepo != self.rorepo)
assert len(set((self.rorepo, self.rorepo))) == 1
+ @with_rw_directory
+ def test_tilde_in_repo_path(self, rw_dir):
+ ph = os.environ['HOME']
+ try:
+ os.environ['HOME'] = rw_dir
+ Repo.init(os.path.join(rw_dir, 'test.git'), bare=True)
+ finally:
+ os.environ['HOME'] = ph
+ # end assure HOME gets reset to what it was
+
def test_git_cmd(self):
# test CatFileContentStream, just to be very sure we have no fencepost errors
# last \n is the terminating newline that it expects