コード例 #1
0
ファイル: test_git_dir.py プロジェクト: themalkolm/git-boots
    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())
コード例 #2
0
ファイル: test_git_dir.py プロジェクト: themalkolm/git-boots
 def test_git_dir(self):
     sh.git('init')
     self.assertEqual('.git', git_dir())