def gitUpdate(self):
    outFilename = self.logsPath + "gkno_update.out"
    errFilename = self.logsPath + "gkno_update.err"
    out = sys.stdout
    err = sys.stderr
    if not self.isVerbose:
      out = open(outFilename, 'w')
      err = open(errFilename, 'w')
    os.chdir(self.sourcePath)
    success = self.runCommand("git pull origin master", out, err)
    if not self.isVerbose:
      out.close()
      err.close()
      if success:
        os.remove(outFilename)
        os.remove(errFilename)
    return success
dataset/ETHPy150Open gkno/gkno_launcher/src/gkno/adminUtils.py/adminUtils.gitUpdate/original