fix insanely stupid mistake
This commit is contained in:
parent
d05f7e4758
commit
0a2957dda1
|
@ -245,6 +245,9 @@ namespace SparkleLib {
|
||||||
public SparkleRepo (string path)
|
public SparkleRepo (string path)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
LocalPath = path;
|
||||||
|
Name = Path.GetFileName (LocalPath);
|
||||||
|
|
||||||
Process = new Process () {
|
Process = new Process () {
|
||||||
EnableRaisingEvents = true
|
EnableRaisingEvents = true
|
||||||
};
|
};
|
||||||
|
@ -254,8 +257,6 @@ namespace SparkleLib {
|
||||||
Process.StartInfo.UseShellExecute = false;
|
Process.StartInfo.UseShellExecute = false;
|
||||||
Process.StartInfo.WorkingDirectory = LocalPath;
|
Process.StartInfo.WorkingDirectory = LocalPath;
|
||||||
|
|
||||||
LocalPath = path;
|
|
||||||
Name = Path.GetFileName (LocalPath);
|
|
||||||
RemoteName = Path.GetFileNameWithoutExtension (RemoteOriginUrl);
|
RemoteName = Path.GetFileNameWithoutExtension (RemoteOriginUrl);
|
||||||
RemoteOriginUrl = GetRemoteOriginUrl ();
|
RemoteOriginUrl = GetRemoteOriginUrl ();
|
||||||
Domain = GetDomain (RemoteOriginUrl);
|
Domain = GetDomain (RemoteOriginUrl);
|
||||||
|
@ -328,13 +329,12 @@ namespace SparkleLib {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: Change to OnTopicChange. The topic will contain the latest hash
|
|
||||||
// Fetch changes when there is a message in the irc channel
|
// Fetch changes when there is a message in the irc channel
|
||||||
Listener.Client.OnChannelMessage += delegate (object o, IrcEventArgs args) { // TODO: TopicChangeEventArgs
|
Listener.Client.OnChannelMessage += delegate (object o, IrcEventArgs args) {
|
||||||
|
|
||||||
SparkleHelpers.DebugInfo ("Irc", "[" + Name + "] Was notified of a remote change.");
|
SparkleHelpers.DebugInfo ("Irc", "[" + Name + "] Was notified of a remote change.");
|
||||||
|
|
||||||
if (!args.Data.Message.Equals (_CurrentHash)) { //TODO: args.Data.NewTopic
|
if (!args.Data.Message.Equals (_CurrentHash)) {
|
||||||
|
|
||||||
FetchRequests++;
|
FetchRequests++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue