def status(self):
        """Get status on the repo.
        :return:
        :rtype:
        """

        rd = self.repo_dir

        logger.debug("pkg path %s", rd)
        if not rd:
            print(
                "unable to find pkg '%s'. %s" % (self.name, did_u_mean(self.name))
            )

        cwd = os.getcwd()
        os.chdir(self.repo_dir)
        logger.debug("cwd: %s, getting status %s ", cwd, self.repo_dir)
        try:
            p = git.status(_out=self._sh_stdout('blue'),
                           _err=self._sh_stderr('red'))
            p.wait()
        except Exception:
            pass
            # logger.warn(e)
        os.chdir(cwd)
def status ( self ) : rd = self . repo_dir logger . debug ( "pkg path %s" , rd ) if not rd : print ( "unable to find pkg '%s'. %s" % ( self . name , did_u_mean ( self . name ) ) ) cwd = os . getcwd ( ) os . chdir ( self . repo_dir ) logger . debug ( "cwd: %s, getting status %s " , cwd , self . repo_dir ) try : p = git . status ( _out = self . _sh_stdout ( 'blue' ) , _err = self . _sh_stderr ( 'red' ) ) p . wait ( ) except Exception : pass os . chdir ( cwd )
Get status on the repo.
        :return:
        :rtype: