Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(618)

Unified Diff: infra/libs/git2/ref.py

Issue 424423004: Push pending tag and synthesized commit in a single git push operation. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | infra/libs/git2/repo.py » ('j') | infra/libs/git2/repo.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/libs/git2/ref.py
diff --git a/infra/libs/git2/ref.py b/infra/libs/git2/ref.py
index 2c83ab96913a5f3e3e6099bc840a852d9f921d2e..680c1ddd06a1c590a4aca58d2697b429bb9e32da 100644
--- a/infra/libs/git2/ref.py
+++ b/infra/libs/git2/ref.py
@@ -53,12 +53,6 @@ class Ref(object):
for hsh in self.repo.run('rev-list', '--reverse', arg).splitlines():
yield self.repo.get_commit(hsh)
- def fast_forward_push(self, commit):
- """Push |commit| to this ref on the remote, and update the local copy of the
- ref to |commit|."""
- self.repo.run('push', 'origin', '%s:%s' % (commit.hsh, self.ref))
- self.update_to(commit)
-
def update_to(self, commit):
"""Update the local copy of the ref to |commit|."""
self.repo.run('update-ref', self.ref, commit.hsh)
« no previous file with comments | « no previous file | infra/libs/git2/repo.py » ('j') | infra/libs/git2/repo.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698