def get_last_update(self, path): os.chdir(path) cmd = "stat -c %y .git/FETCH_HEAD".split() return str(subprocess.check_output(cmd, stderr=subprocess.DEVNULL))[2:21]