mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-08 18:26:30 +00:00
reporting git error check message if there is any
This commit is contained in:
parent
ebbe345290
commit
3aedc8c78d
@ -20,7 +20,7 @@ public abstract class GitCommand<V> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(GitCommand.class);
|
||||
|
||||
private static final String MIN_VERSION = "2.11.0";
|
||||
private static final String MIN_VERSION = "1.8.0";
|
||||
|
||||
protected final File gitDir;
|
||||
|
||||
|
||||
@ -55,8 +55,8 @@ public abstract class AbstractGitTest extends AppLoaderMocker {
|
||||
|
||||
});
|
||||
|
||||
Assert.assertTrue(GitCommand.checkError("git") == null);
|
||||
|
||||
String gitError = GitCommand.checkError("git");
|
||||
Assert.assertTrue(gitError, gitError == null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user