def __init__(self, gitDir=None): ShellAccessObject.__init__(self) if gitDir: self.setEnv("GIT_DIR", gitDir)