mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-28 23:35:54 +00:00
Fix issue when git status returns empty string.
This commit is contained in:
parent
73baabfa82
commit
bbccdfe3fb
|
|
@ -80,7 +80,24 @@ class GitCommit
|
||||||
haxe.macro.Context.info('[WARN] Could not determine current git commit; is this a proper Git repository?', pos);
|
haxe.macro.Context.info('[WARN] Could not determine current git commit; is this a proper Git repository?', pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
var output:String = branchProcess.stdout.readLine();
|
var output:String = '';
|
||||||
|
try
|
||||||
|
{
|
||||||
|
output = branchProcess.stdout.readLine();
|
||||||
|
}
|
||||||
|
catch (e)
|
||||||
|
{
|
||||||
|
if (e.message == 'Eof')
|
||||||
|
{
|
||||||
|
// Do nothing.
|
||||||
|
// Eof = No output.
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Rethrow other exceptions.
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
}
|
||||||
trace('Git Status Output: ${output}');
|
trace('Git Status Output: ${output}');
|
||||||
|
|
||||||
// Generates a string expression
|
// Generates a string expression
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue