repo: fix bug where the first commit hash wasn't used for the channel name
This commit is contained in:
parent
f887b28e45
commit
d544400234
|
@ -262,11 +262,15 @@ namespace SparkleLib {
|
||||||
// author, and timestamp; it is unique enough to
|
// author, and timestamp; it is unique enough to
|
||||||
// use the hash of the first commit as an identifier
|
// use the hash of the first commit as an identifier
|
||||||
// for our folder
|
// for our folder
|
||||||
SparkleGit git = new SparkleGit (LocalPath, "log --reverse -1 --format=%H");
|
SparkleGit git = new SparkleGit (LocalPath, "rev-list --reverse HEAD");
|
||||||
git.Start ();
|
git.Start ();
|
||||||
|
|
||||||
|
// Reading the standard output HAS to go before
|
||||||
|
// WaitForExit, or it will hang forever on output > 4096 bytes
|
||||||
|
string output = git.StandardOutput.ReadToEnd ();
|
||||||
git.WaitForExit ();
|
git.WaitForExit ();
|
||||||
|
|
||||||
return git.StandardOutput.ReadToEnd ().Trim ();
|
return output.Substring (0, 40);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -958,7 +962,7 @@ namespace SparkleLib {
|
||||||
List<string> Modified = new List<string> ();
|
List<string> Modified = new List<string> ();
|
||||||
List<string> Removed = new List<string> ();
|
List<string> Removed = new List<string> ();
|
||||||
string file_name = "";
|
string file_name = "";
|
||||||
string message = null;
|
string message = "";
|
||||||
|
|
||||||
SparkleGit git_status = new SparkleGit (LocalPath, "status --porcelain");
|
SparkleGit git_status = new SparkleGit (LocalPath, "status --porcelain");
|
||||||
git_status.Start ();
|
git_status.Start ();
|
||||||
|
|
Loading…
Reference in a new issue