From 1a49fa42d297d58abd2b17e829ba6d58635edb85 Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Sat, 21 Jan 2023 02:51:04 -0700 Subject: [PATCH] Test push.force() --- src/test/java/org/jenkinsci/plugins/gitclient/GitAPITest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/jenkinsci/plugins/gitclient/GitAPITest.java b/src/test/java/org/jenkinsci/plugins/gitclient/GitAPITest.java index 474924fe5b..21ba95cd17 100644 --- a/src/test/java/org/jenkinsci/plugins/gitclient/GitAPITest.java +++ b/src/test/java/org/jenkinsci/plugins/gitclient/GitAPITest.java @@ -621,7 +621,7 @@ public void testPushTags() throws Exception { testGitClient.push().ref(defaultBranchName).to(new URIish(bare.getGitFileDir().getAbsolutePath())).tags(true).force(false).execute(); } - testGitClient.push().ref(defaultBranchName).to(new URIish(bare.getGitFileDir().getAbsolutePath())).tags(true).force(true).execute(); + testGitClient.push().ref(defaultBranchName).to(new URIish(bare.getGitFileDir().getAbsolutePath())).tags(true).force().execute(); /* Add tag to working repo without pushing it to the bare * repo, tests the default behavior when tags() is not added