|
|
|
@ -193,6 +193,9 @@ namespace UpdateAssemblyInfo
@@ -193,6 +193,9 @@ namespace UpdateAssemblyInfo
|
|
|
|
|
static void ReadRevisionNumberFromGit() |
|
|
|
|
{ |
|
|
|
|
ProcessStartInfo info = new ProcessStartInfo("cmd", "/c git rev-list --first-parent " + BaseCommit + "..HEAD"); |
|
|
|
|
string path = Environment.GetEnvironmentVariable("PATH"); |
|
|
|
|
path += ";" + Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "git\\bin"); |
|
|
|
|
info.EnvironmentVariables["PATH"] = path; |
|
|
|
|
info.RedirectStandardOutput = true; |
|
|
|
|
info.UseShellExecute = false; |
|
|
|
|
using (Process p = Process.Start(info)) { |
|
|
|
|