Fixed invalid version string on git

Git commit hashcodes are not compatible with the 16bit integer values found in .Net version numbers. Use the git commit count as a version number instead.
This commit is contained in:
Stefanos A 2013-10-02 00:05:59 +02:00
parent 7460452b26
commit 31f2df094b
2 changed files with 11 additions and 1 deletions

View file

@ -124,7 +124,7 @@ namespace Build.UpdateVersion
{
try
{
string output = RunProcess("git", "log -1", RootDirectory);
string output = RunProcess("git", "rev-list HEAD --count", RootDirectory);
const string RevisionText = "commit ";
int index = output.IndexOf(RevisionText);

View file

@ -0,0 +1,10 @@
using System;
namespace OpenTK.Platform.SDL2
{
partial class SDL
{
public readonly static object Sync = new object();
}
}