<s> from os . path import isdir , join <EOL> from git import Repo <EOL> from jig . conf import JIG_DIR_NAME <EOL> def is_git_repo ( gitdir ) : <EOL> """<STR_LIT>""" <EOL> return isdir ( join ( gitdir , '<STR_LIT>' ) ) <EOL> def repo_jiginitialized ( gitdir ) : <EOL> """<STR_LIT>""" <EOL> return isdir ( join ( gitdir , JIG_DIR_NAME ) ) <EOL> def working_directory_dirty ( gitdir ) : <EOL> """<STR_LIT>""" <EOL> repo = Repo ( gitdir ) <EOL> return repo . is_dirty ( ) </s>
