HaxeFoundation / haxe

Haxe - The Cross-Platform Toolkit
https://haxe.org
6.19k stars 656 forks source link

Issue 850 - haxelib failed to use git - haxe #850

Closed issuesbot closed 11 years ago

issuesbot commented 11 years ago

[Google Issue #850 : https://code.google.com/p/haxe/issues/detail?id=850] by andy@onthewings.net, at 17/05/2012, 16:31:04 The code in std/tools/haxelib/Main.hx:

   function command( cmd:String, args:Array<String> ) {
    var p = new neko.io.Process(cmd, args);
    return { code:p.exitCode(), out:p.exitCode() == 0 ? p.stdout.readAll().toString() : p.stderr.readAll().toString() };
    }

should not call exitCode() twice, which the 2nd call will result in error "std@ process_exit".

Tested on Mac 10.7.4, Neko 1.8.2, haxe 12cfc866351a0d8e65ed191dbbdf34f014fdc0be.

issuesbot commented 11 years ago

[comment from simon.kr...@simn.de, published at 17/05/2012, 17:30:34] This issue was closed by revision 9e95ae272144b0df750177e4a1f3af9b7adcc17b.