mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
fix defect hg.bat from package installation
This commit is contained in:
@@ -35,12 +35,15 @@ package sonia.scm.web;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import java.io.File;
|
||||
import sonia.scm.SCMContext;
|
||||
import sonia.scm.repository.HgConfig;
|
||||
import sonia.scm.repository.HgPythonScript;
|
||||
import sonia.scm.util.Util;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
@@ -64,8 +67,8 @@ public class HgUtil
|
||||
public static String getPythonPath(HgConfig config)
|
||||
{
|
||||
String pythonPath = Util.EMPTY_STRING;
|
||||
|
||||
if ( config != null )
|
||||
|
||||
if (config != null)
|
||||
{
|
||||
pythonPath = Util.nonNull(config.getPythonPath());
|
||||
}
|
||||
@@ -82,10 +85,10 @@ public class HgUtil
|
||||
).getAbsolutePath()
|
||||
);
|
||||
//J+
|
||||
|
||||
|
||||
return pythonPath;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
@@ -97,7 +100,7 @@ public class HgUtil
|
||||
public static String getRevision(String revision)
|
||||
{
|
||||
return Util.isEmpty(revision)
|
||||
? REVISION_TIP
|
||||
: revision;
|
||||
? REVISION_TIP
|
||||
: revision;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user