Fix api breaks from libgit2-glib

parent ece73d4d
......@@ -81,7 +81,6 @@ namespace Gitg
try
{
d_config.refresh();
author_name = d_config.get_string("user.name");
}
catch {}
......
......@@ -80,9 +80,8 @@ public class CloneDialog : Gtk.Dialog
d_entry_url.changed.connect((e) => {
string ?tooltip_text = null;
string ?icon_name = null;
bool url_supported = Ggit.Remote.is_supported_url(d_entry_url.get_text());
if (!url_supported && (d_entry_url.text != ""))
if (d_entry_url.text != "")
{
icon_name = "dialog-warning-symbolic";
tooltip_text = _("The URL introduced is not supported");
......@@ -90,8 +89,6 @@ public class CloneDialog : Gtk.Dialog
d_entry_url.set_icon_from_icon_name(Gtk.EntryIconPosition.SECONDARY, icon_name);
d_entry_url.set_icon_tooltip_text(Gtk.EntryIconPosition.SECONDARY, tooltip_text);
set_response_sensitive(Gtk.ResponseType.OK, url_supported);
});
}
}
......
......@@ -115,7 +115,7 @@ class RemoteManager : Object, GitgExt.RemoteLookup
try
{
remote = d_window.repository.get_remote(name) as Gitg.Remote;
remote = d_window.repository.lookup_remote(name) as Gitg.Remote;
} catch { return null; }
var url = remote.get_url();
......
......@@ -177,7 +177,7 @@ public class Remote : Ggit.Remote
try
{
yield Async.thread(() => {
base.download();
base.download(null);
if (signature != null)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment