[
  {
    "cmd": [
      "python",
      "-u",
      "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
      "--path",
      "[SLAVE_BUILD]/src",
      "--url",
      "https://chromium.googlesource.com/chromium/src.git"
    ],
    "name": "git setup"
  },
  {
    "cmd": [
      "git",
      "retry",
      "cache",
      "populate",
      "-c",
      "[GIT_CACHE]",
      "https://chromium.googlesource.com/chromium/src.git"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "env": {
      "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
    },
    "name": "populate cache"
  },
  {
    "cmd": [
      "git",
      "cache",
      "exists",
      "--quiet",
      "--cache-dir",
      "[GIT_CACHE]",
      "https://chromium.googlesource.com/chromium/src.git"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "env": {
      "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
    },
    "name": "git cache",
    "stdout": "/path/to/tmp/"
  },
  {
    "cmd": [
      "git",
      "remote",
      "set-url",
      "origin",
      "mirror_dir"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "env": {
      "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
    },
    "name": "git remote"
  },
  {
    "cmd": [
      "git",
      "retry",
      "fetch",
      "origin",
      "master",
      "--recurse-submodules"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "env": {
      "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
    },
    "name": "git fetch"
  },
  {
    "cmd": [
      "git",
      "checkout",
      "-f",
      "FETCH_HEAD"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "name": "git checkout"
  },
  {
    "cmd": [
      "git",
      "rev-parse",
      "HEAD"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "name": "read revision",
    "stdout": "/path/to/tmp/",
    "~followup_annotations": [
      "@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@"
    ]
  },
  {
    "cmd": [
      "git",
      "clean",
      "-f",
      "-d",
      "-x"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "name": "git clean"
  },
  {
    "cmd": [
      "git",
      "submodule",
      "sync"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "name": "submodule sync"
  },
  {
    "cmd": [
      "git",
      "submodule",
      "update",
      "--init",
      "--recursive"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "name": "submodule update"
  },
  {
    "cmd": [
      "git",
      "-c",
      "foo=bar",
      "count-objects",
      "-v"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "name": "count-objects",
    "stdout": "/path/to/tmp/"
  },
  {
    "cmd": [
      "git",
      "config",
      "--get",
      "remote.origin.url"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "name": "git config remote.origin.url",
    "stdout": "/path/to/tmp/",
    "~followup_annotations": [
      "@@@STEP_TEXT@foo@@@"
    ]
  },
  {
    "cmd": [
      "git",
      "show",
      "HEAD",
      "--format=%at",
      "-s"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "name": "git show",
    "stdout": "/path/to/tmp/"
  },
  {
    "cmd": [
      "git",
      "fetch",
      "origin",
      "--tags"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "name": "git fetch tags"
  },
  {
    "cmd": [
      "git",
      "status"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "name": "git status"
  },
  {
    "cmd": [
      "git",
      "status"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "name": "git status can_fail_build"
  },
  {
    "cmd": [
      "git",
      "status"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "name": "git status cannot_fail_build"
  },
  {
    "cmd": [
      "git",
      "new-branch",
      "refactor"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "env": {
      "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
    },
    "name": "git new-branch refactor"
  },
  {
    "cmd": [
      "git",
      "new-branch",
      "feature",
      "--upstream",
      "refactor"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "env": {
      "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
    },
    "name": "git new-branch feature"
  },
  {
    "cmd": [
      "git",
      "rebase",
      "origin/master"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "name": "my repo rebase"
  },
  {
    "cmd": [
      "git",
      "bundle",
      "create",
      "[SLAVE_BUILD]/all.bundle",
      "--all"
    ],
    "cwd": "[SLAVE_BUILD]/src",
    "name": "git bundle"
  },
  {
    "name": "$result",
    "recipe_result": null,
    "status_code": 0
  }
]