aboutsummaryrefslogtreecommitdiff
path: root/git-codereview/sync_test.go
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2022-01-06 21:15:14 -0500
committerDmitri Shuralyov <dmitshur@golang.org>2022-01-07 20:37:27 +0000
commitb04b288d5464253e76c11b8926cdb6721c25a073 (patch)
treeb28d9f7393e0543b05229d28fdb5c1bb2f4ee815 /git-codereview/sync_test.go
parentb8ead204a2e00eca3f1554da0b908d1d7b7afb9f (diff)
downloadgo-x-review-b04b288d5464253e76c11b8926cdb6721c25a073.tar.xz
review: fix TestSyncRebase test
Disable `advice.skippedCherryPicks` on the test client git repo to suppress git's --reapply-cherry-picks hint when commits with same content but different commit hashes are skipped on rebase. Fixes golang/go#50453 Change-Id: I6d3a9cebf50f55c96d2ad096a58222c7988bcc61 Reviewed-on: https://go-review.googlesource.com/c/review/+/376039 Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com> Trust: Heschi Kreinick <heschi@google.com> Trust: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'git-codereview/sync_test.go')
-rw-r--r--git-codereview/sync_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-codereview/sync_test.go b/git-codereview/sync_test.go
index 6470c5e..31f4800 100644
--- a/git-codereview/sync_test.go
+++ b/git-codereview/sync_test.go
@@ -55,6 +55,9 @@ func TestSyncRebase(t *testing.T) {
gt := newGitTest(t)
defer gt.done()
+ // Suppress --reapply-cherry-picks hint.
+ trun(t, gt.client, "git", "config", "advice.skippedCherryPicks", "false")
+
// client 3 ahead
gt.work(t)
gt.work(t)