Teach 'git cl land' to land to pending ref.
R=iannucci@chromium.org
BUG=404214
Review URL: https://codereview.chromium.org/496073002
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@291302 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py
index cc53258..a30bf95 100755
--- a/tests/git_cl_test.py
+++ b/tests/git_cl_test.py
@@ -206,6 +206,7 @@
((['git', 'config', 'core.editor'],), ''),
] + cc_call + private_call + [
((['git', 'config', 'branch.master.base-url'],), ''),
+ ((['git', 'config', 'rietveld.pending-ref-prefix'],), ''),
((['git',
'config', '--local', '--get-regexp', '^svn-remote\\.'],),
(('', None), 0)),
@@ -252,14 +253,16 @@
@classmethod
def _dcommit_calls_1(cls):
return [
+ ((['git', 'config', 'rietveld.autoupdate'],),
+ ''),
+ ((['git', 'config', 'rietveld.pending-ref-prefix'],),
+ ''),
((['git',
'config', '--local', '--get-regexp', '^svn-remote\\.'],),
((('svn-remote.svn.url svn://svn.chromium.org/chrome\n'
'svn-remote.svn.fetch trunk/src:refs/remotes/origin/master'),
None),
0)),
- ((['git', 'config', 'rietveld.autoupdate'],),
- ''),
((['git',
'config', 'rietveld.server'],), 'codereview.example.com'),
((['git', 'symbolic-ref', 'HEAD'],), 'refs/heads/working'),
@@ -689,6 +692,8 @@
'rietveld.cpplint-ignore-regex'],), ''),
((['git', 'config', '--unset-all',
'rietveld.project'],), ''),
+ ((['git', 'config', '--unset-all',
+ 'rietveld.pending-ref-prefix'],), ''),
((['git', 'config', 'gerrit.host',
'gerrit.chromium.org'],), ''),
# DownloadHooks(False)
@@ -774,6 +779,8 @@
''),
((['git', 'config', 'rietveld.private',],),
''),
+ ((['git', 'config', 'rietveld.pending-ref-prefix',],),
+ ''),
((['git', 'config', '--local', '--get-regexp', '^svn-remote\\.'],),
''),
((['git', 'config', 'rietveld.project',],),