<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def commit(self, msg):
 """ Commit outstanding data changes """

        self.logger.info('Commit config: {}'.format(msg))
        with Dir(self.data_path):
            self.cmd.check_assert('git add .')
            self.cmd.check_assert('git commit --allow-empty -m "{}"'.format(msg))