Skip to content

Commit baad7d3

Browse files
committed
SVN: force SourceSVN plugin in svn_call
When used with a child plugin (e.g. SourceWebSVN), the wrong plugin basename is used, resulting in configured options (e.g. svnargs) to be ignored. We now push the current plugin to SourceSVN, to ensure the configuration is retrieved properly Fixes #186
1 parent c57b0d1 commit baad7d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SourceSVN/SourceSVN.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ private function svn_call( $p_repo=null ) {
313313
if ( is_null( $s_call ) ) {
314314
$s_call = self::svn_binary() . ' --non-interactive';
315315

316+
plugin_push_current( 'SourceSVN' );
317+
316318
if ( plugin_config_get( 'svnssl', false ) ) {
317319
$s_call .= ' --trust-server-cert';
318320
}
@@ -321,6 +323,8 @@ private function svn_call( $p_repo=null ) {
321323
if ( !is_blank( $t_svnargs ) ) {
322324
$s_call .= " $t_svnargs";
323325
}
326+
327+
plugin_pop_current();
324328
}
325329

326330
# If not given a repo, just return the base SVN binary

0 commit comments

Comments
 (0)