[
  {
    "cmd": [
      "python3",
      "-u",
      "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
      "--path",
      "[CLEANUP]/tmp_tmp_1",
      "--url",
      "https://chromium.googlesource.com/chromiumos/platform2/"
    ],
    "name": "git setup"
  },
  {
    "cmd": [
      "git",
      "fetch",
      "origin",
      "main",
      "--progress",
      "--depth",
      "1"
    ],
    "cwd": "[CLEANUP]/tmp_tmp_1",
    "env": {
      "PATH": "RECIPE_REPO[depot_tools]:<PATH>"
    },
    "infra_step": true,
    "name": "git fetch"
  },
  {
    "cmd": [
      "git",
      "checkout",
      "-f",
      "FETCH_HEAD"
    ],
    "cwd": "[CLEANUP]/tmp_tmp_1",
    "infra_step": true,
    "name": "git checkout"
  },
  {
    "cmd": [
      "git",
      "rev-parse",
      "HEAD"
    ],
    "cwd": "[CLEANUP]/tmp_tmp_1",
    "infra_step": true,
    "name": "read revision",
    "~followup_annotations": [
      "@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@"
    ]
  },
  {
    "cmd": [
      "git",
      "clean",
      "-f",
      "-d",
      "-x"
    ],
    "cwd": "[CLEANUP]/tmp_tmp_1",
    "infra_step": true,
    "name": "git clean"
  },
  {
    "cmd": [
      "git",
      "submodule",
      "sync"
    ],
    "cwd": "[CLEANUP]/tmp_tmp_1",
    "infra_step": true,
    "name": "submodule sync"
  },
  {
    "cmd": [
      "git",
      "submodule",
      "update",
      "--init",
      "--recursive"
    ],
    "cwd": "[CLEANUP]/tmp_tmp_1",
    "infra_step": true,
    "name": "submodule update"
  },
  {
    "cmd": [
      "curl",
      "-Lo",
      ".git/hooks/commit-msg",
      "https://chromium-review.googlesource.com/tools/hooks/commit-msg"
    ],
    "cwd": "[CLEANUP]/tmp_tmp_1",
    "name": "Install commit hook"
  },
  {
    "cmd": [
      "chmod",
      "+x",
      ".git/hooks/commit-msg"
    ],
    "cwd": "[CLEANUP]/tmp_tmp_1",
    "name": "Make commit hook executable"
  },
  {
    "cmd": [
      "bash",
      "vm_tools/baguette_image/src/uprev-version-pin.sh"
    ],
    "cwd": "[CLEANUP]/tmp_tmp_1",
    "name": "Run uprev-image-version.sh"
  },
  {
    "cmd": [
      "git",
      "diff",
      "--exit-codes",
      "-q",
      "vm_tools/concierge/baguette_version.h"
    ],
    "cwd": "[CLEANUP]/tmp_tmp_1",
    "infra_step": true,
    "name": "git diff"
  },
  {
    "cmd": [
      "git",
      "add",
      "vm_tools/concierge/baguette_version.h"
    ],
    "cwd": "[CLEANUP]/tmp_tmp_1",
    "infra_step": true,
    "name": "git add"
  },
  {
    "cmd": [
      "git",
      "commit",
      "-m",
      "vm_tools: Uprev baguette_image version\n\nGenerated by https://cr-buildbucket.appspot.com/build/0."
    ],
    "cwd": "[CLEANUP]/tmp_tmp_1",
    "infra_step": true,
    "name": "git commit"
  },
  {
    "cmd": [
      "git",
      "push",
      "origin",
      "HEAD:refs/for/main%r=crosvm-uprev@google.com,l=Bot-Commit+1,l=Commit-Queue+2"
    ],
    "cwd": "[CLEANUP]/tmp_tmp_1",
    "infra_step": true,
    "name": "git push"
  },
  {
    "name": "$result"
  }
]