<s> __version__ = '<STR_LIT>' <EOL> __author__ = '<STR_LIT>' <EOL> _repository = None <EOL> _branch = '<STR_LIT>' <EOL> _remote = '<STR_LIT>' <EOL> class GitError ( Exception ) : pass <EOL> def set_repository ( value ) : <EOL> from pygit2 import discover_repository , Repository <EOL> global _repository <EOL> if value is None : <EOL> _repository = None <EOL> return <EOL> try : <EOL> path = discover_repository ( value ) <EOL> except KeyError : <EOL> raise GitError ( '<STR_LIT>' . format ( value ) ) <EOL> _repository = Repository ( path ) <EOL> def get_repository ( ) : <EOL> return _repository <EOL> def set_branch ( value ) : <EOL> global _branch <EOL> _branch = value <EOL> def get_branch ( ) : <EOL> return _branch <EOL> def set_remote ( value ) : <EOL> global _remote <EOL> _remote = value <EOL> def get_remote ( ) : <EOL> return _remote </s>
