瀏覽代碼

fix svn commandline not working with Sys.command (stdio inherit?)

Nicolas Cannasse 4 年之前
父節點
當前提交
7d32991af8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hide/view/FileTree.hx

+ 1 - 1
hide/view/FileTree.hx

@@ -181,7 +181,7 @@ class FileTree extends FileView {
 		var isDir = sys.FileSystem.isDirectory(ide.getPath(path));
 		var wasRenamed = false;
 		if( sys.FileSystem.exists(ide.projectDir+"/.svn") ) {
-			if( Sys.command("svn",["--version"]) != 0 ) {
+			if( js.node.ChildProcess.spawnSync("svn",["--version"]).status != 0 ) {
 				if( isDir && !ide.confirm("Renaming a SVN directory, but 'svn' system command was not found. Continue ?") )
 					return false;
 			} else {