Esempio n. 1
0
    def test_git_dir_from_subdir(self):
        sh.git('init')
        sh.mkdir('foo')
        expected = os.path.join(os.getcwd(), '.git')

        sh.cd('foo')
        self.assertEqual(expected, git_dir())
Esempio n. 2
0
 def test_git_dir(self):
     sh.git('init')
     self.assertEqual('.git', git_dir())