note: don't push notes to read only repos
This commit is contained in:
parent
46140fb8d8
commit
741910c8ad
|
@ -558,6 +558,11 @@ namespace SparkleLib {
|
||||||
|
|
||||||
public override void AddNote (string revision, string note)
|
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;
|
int timestamp = (int) (DateTime.UtcNow - new DateTime (1970, 1, 1)).TotalSeconds;
|
||||||
|
|
||||||
// Create the note in one line for easier merging
|
// Create the note in one line for easier merging
|
||||||
|
|
Loading…
Reference in a new issue