Index: tools/push-to-trunk/git_recipes.py |
diff --git a/tools/push-to-trunk/git_recipes.py b/tools/push-to-trunk/git_recipes.py |
index 7d9c4026e217a46e9461e6a41b15ef237e6f7252..8e84d4533b230814ac80bf4c66eef03cab40e04c 100644 |
--- a/tools/push-to-trunk/git_recipes.py |
+++ b/tools/push-to-trunk/git_recipes.py |
@@ -63,10 +63,10 @@ class GitRecipesMixin(object): |
assert name |
self.Git(MakeArgs(["checkout -f", name])) |
- def GitCheckoutFile(self, name, branch): |
+ def GitCheckoutFile(self, name, branch_or_hash): |
assert name |
- assert branch |
- self.Git(MakeArgs(["checkout -f", branch, "--", name])) |
+ assert branch_or_hash |
+ self.Git(MakeArgs(["checkout -f", branch_or_hash, "--", name])) |
@Strip |
def GitCurrentBranch(self): |