note: don't push notes to read only repos

This commit is contained in:
Hylke Bons 2011-06-25 22:39:53 +01:00
parent cd0b76bba8
commit a9c52ea738

View file

@ -558,6 +558,11 @@ namespace SparkleLib {
public override void AddNote (string revision, string note)
{
string url = SparkleConfig.DefaultConfig.GetUrlForFolder (Name);
if (url.StartsWith ("git") || url.StartsWith ("http"))
return;
int timestamp = (int) (DateTime.UtcNow - new DateTime (1970, 1, 1)).TotalSeconds;
// Create the note in one line for easier merging