Skip to content

Commit cd2c37e

Browse files
committed
Deprecate method instead of deleting it
Preserve API compatibility for consumers. Low risk to delete it, but it is simpler for maintainers if we retain the method rather than answer later questions about its removal.
1 parent b0b8491 commit cd2c37e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main/java/hudson/plugins/git/GitSCM.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,6 +1810,17 @@ public void setAllowSecondFetch(boolean allowSecondFetch) {
18101810

18111811
public void setAddGitTagAction(boolean addGitTagAction) { this.addGitTagAction = addGitTagAction; }
18121812

1813+
/**
1814+
* Old configuration of git executable, unused since 2023.
1815+
* Returns null in all cases.
1816+
* @deprecated use GitTool
1817+
* @return null
1818+
*/
1819+
@Deprecated(since = "5.11.0")
1820+
public String getOldGitExe() {
1821+
return null;
1822+
}
1823+
18131824
public static List<RemoteConfig> createRepositoryConfigurations(String[] urls,
18141825
String[] repoNames,
18151826
String[] refs) throws GitException, IOException {

0 commit comments

Comments
 (0)