in script/checkout.py [0:0]
def checkout_skia(commit):
# Clone Skia
if os.path.exists("skia"):
print("> Fetching {}".format(commit))
os.chdir("skia")
subprocess.check_call(["git", "reset", "--hard"])
subprocess.check_call(["git", "clean", "-d", "-f"])
subprocess.check_call(["git", "fetch", "origin"])
else:
print("> Cloning")
subprocess.check_call(["git", "clone", "--config", "core.autocrlf=input", "https://github.com/JetBrains/skia.git", "--quiet"])
os.chdir("skia")
subprocess.check_call(["git", "fetch", "origin"])
# Checkout commit
print("> Checking out", commit)
subprocess.check_call(["git", "-c", "advice.detachedHead=false", "checkout", commit])