                  print(output.strip())
          retcode = cmd.poll()
          logger.debug("Update returncode: %s", retcode)
          if retcode != 0:
              print("An error occurred during update. return code: {}".format(retcode))
              return
  
          print("\nPlease restart Faceswap to complete the update.")
 
</s> remove         logger.debug("Update returncode: %s", retcode)
 </s> add         logger.debug("'%s' returncode: %s", gitcmd, retcode) </s> remove                 logger.debug("Update output: '%s'", output.strip())
 </s> add                 logger.debug("'%s' output: '%s'", gitcmd, output.strip()) </s> remove         logger.debug("Check output: %s", stdout.decode(encoding))
        logger.debug("Check returncode: %s", retcode)
 </s> add         logger.debug("'%s' output: %s", gitcmd, stdout.decode(encoding))
        logger.debug("'%s' returncode: %s", gitcmd, retcode) </s> remove         cmd = Popen("git remote update && git status -uno", shell=True, stdout=PIPE, stderr=STDOUT)
 </s> add         logger.info("Checking for updates...")
        update = False
        msg = ""
        gitcmd = "git remote update && git status -uno"
        cmd = Popen(gitcmd, shell=True, stdout=PIPE, stderr=STDOUT) </s> remove             print("Git is not installed or you are not running a cloned repo. "
                  "Unable to check for updates")
            return
        chk = stdout.decode(encoding).splitlines()

        update = False
        for line in chk:
            if line.lower().startswith("your branch is ahead"):
                print("Your branch is ahead of the remote repo. Not updating")
                break
            if line.lower().startswith("your branch is up to date"):
                print("Faceswap is up to date.")
                break
            if line.lower().startswith("your branch is behind"):
                update = True
                break
            if "have diverged" in line.lower():
                print("Your branch has diverged from the remote repo. Not updating")
                break
        logger.debug("update: %s", update)
 </s> add             msg = ("Git is not installed or you are not running a cloned repo. "
                   "Unable to check for updates")
        else:
            chk = stdout.decode(encoding).splitlines()
            for line in chk:
                if line.lower().startswith("your branch is ahead"):
                    msg = "Your branch is ahead of the remote repo. Not updating"
                    break
                if line.lower().startswith("your branch is up to date"):
                    msg = "Faceswap is up to date."
                    break
                if line.lower().startswith("your branch is behind"):
                    update = True
                    break
                if "have diverged" in line.lower():
                    msg = "Your branch has diverged from the remote repo. Not updating"
                    break
        self.clear_console()
            msg = "An error occurred during update. return code: {}".format(retcode)
        else:
            msg = "Please restart Faceswap to complete the update."
        logger.info(msg)
                  print(output.strip())
          retcode = cmd.poll()
          logger.debug("Update returncode: %s", retcode)
          if retcode != 0:
            msg = "An error occurred during update. return code: {}".format(retcode)
        else:
            msg = "Please restart Faceswap to complete the update."
        logger.info(msg)
            msg = "An error occurred during update. return code: {}".format(retcode)
        else:
            msg = "Please restart Faceswap to complete the update."
        logger.info(msg)
            msg = "An error occurred during update. return code: {}".format(retcode)
        else:
            msg = "Please restart Faceswap to complete the update."
        logger.info(msg)
            msg = "An error occurred during update. return code: {}".format(retcode)
        else:
            msg = "Please restart Faceswap to complete the update."
        logger.info(msg)
keep keep keep keep replace replace replace replace
 More responsive FaceSwap update code 
lib/gui/menu.py