)]}' { "commit": "6850d51607dc09c3c390bf3a5a0ed7acb20d61b9", "tree": "bbc9a4054754b54fc0e155860a764e5b76ce3b52", "parents": [ "dce4d05817ee641df266e013dd1991daeca3f01f" ], "author": { "name": "Mike Frysinger", "email": "vapier@chromium.org", "time": "Mon May 21 12:12:14 2018 -0400" }, "committer": { "name": "chrome-bot", "email": "chrome-bot@chromium.org", "time": "Mon May 21 12:40:13 2018 -0700" }, "message": "pre-upload: fix running with upstream repo checkout\n\nThe pre-upload script has assumed that, when imported, the repo program\nis running out of $CHROMEOS_CHECKOUT/.repo/repo/. This is normally the\ncase when people use the repo launcher script from depot_tools.\n\nThis fails if repo is being run directly from somewhere else. I\u0027ve got\nan upstream version of repo living in /usr/local/src/repo/ (to test the\nlatest version before we update), so the argv[0] trick no longer works.\n\nLets switch the logic to use a different fact: when the upload hook is\nrun, the cwd is always the top level of the repo checkout. This is in\nthe upstream hook documentation.\n\nBUG\u003dNone\nTEST\u003d`repo upload` works using local .repo/ and upstream versions\n\nChange-Id: I5d805bb5d1f66b86c9776274205372e80e937df0\nReviewed-on: https://chromium-review.googlesource.com/1067457\nCommit-Ready: Mike Frysinger \u003cvapier@chromium.org\u003e\nTested-by: Mike Frysinger \u003cvapier@chromium.org\u003e\nReviewed-by: Luis Hector Chavez \u003clhchavez@chromium.org\u003e\n", "tree_diff": [ { "type": "modify", "old_id": "ead2edbb56a6818eab85dd7e6580e9d07fdcc7a4", "old_mode": 33261, "old_path": "pre-upload.py", "new_id": "375f695278d4fe0be01df400e87afc160a20767f", "new_mode": 33261, "new_path": "pre-upload.py" } ] }