소스 검색

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 {