mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 17:05:43 +01:00
fix bug in configuration system
This commit is contained in:
@@ -171,21 +171,21 @@ public class App
|
|||||||
if (config == null)
|
if (config == null)
|
||||||
{
|
{
|
||||||
config = ScmClientConfig.getInstance().getDefaultConfig();
|
config = ScmClientConfig.getInstance().getDefaultConfig();
|
||||||
|
}
|
||||||
|
|
||||||
if (Util.isNotEmpty(serverUrl))
|
if (Util.isNotEmpty(serverUrl))
|
||||||
{
|
{
|
||||||
config.setServerUrl(serverUrl);
|
config.setServerUrl(serverUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Util.isNotEmpty(username))
|
if (Util.isNotEmpty(username))
|
||||||
{
|
{
|
||||||
config.setUsername(username);
|
config.setUsername(username);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Util.isNotEmpty(password))
|
if (Util.isNotEmpty(password))
|
||||||
{
|
{
|
||||||
config.setPassword(password);
|
config.setPassword(password);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user