mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-09-18 15:32:39 +00:00
list-box: use the new intermediate fetch options
This commit is contained in:
parent
f5f4530679
commit
96906c3b15
|
@ -520,12 +520,14 @@ namespace Gitg
|
|||
ThreadFunc<void*> run = () => {
|
||||
try
|
||||
{
|
||||
var options = new Ggit.CloneOptions();
|
||||
var clone_options = new Ggit.CloneOptions();
|
||||
var fetch_options = new Ggit.FetchOptions();
|
||||
|
||||
options.set_is_bare(is_bare);
|
||||
options.set_remote_callbacks(new CloneProgress(row));
|
||||
clone_options.set_is_bare(is_bare);
|
||||
clone_options.set_fetch_options(fetch_options);
|
||||
fetch_options.set_remote_callbacks(new CloneProgress(row));
|
||||
|
||||
repository = (Repository)Ggit.Repository.clone(url, location, options);
|
||||
repository = (Repository)Ggit.Repository.clone(url, location, clone_options);
|
||||
}
|
||||
catch (Ggit.Error e)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue