2
0
Эх сурвалжийг харах

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

Nicolas Cannasse 4 жил өмнө
parent
commit
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 {