Removed a couple of ObjectFactory references.
This commit is contained in:
@@ -11,14 +11,14 @@ namespace Sep.Git.Tfs.Commands
|
||||
[Description("clone [options] tfs-url repository-path <git-repository-path>")]
|
||||
public class Clone : GitTfsCommand
|
||||
{
|
||||
private readonly GitTfsCommand fetch;
|
||||
private readonly GitTfsCommand init;
|
||||
private readonly Fetch fetch;
|
||||
private readonly Init init;
|
||||
private readonly Globals globals;
|
||||
|
||||
public Clone(Globals globals)
|
||||
public Clone(Globals globals, Fetch fetch, Init init)
|
||||
{
|
||||
fetch = ObjectFactory.GetNamedInstance<GitTfsCommand>("fetch");
|
||||
init = ObjectFactory.GetNamedInstance<GitTfsCommand>("init");
|
||||
this.fetch = fetch;
|
||||
this.init = init;
|
||||
this.globals = globals;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Sep.Git.Tfs.Commands
|
||||
public class Pull : GitTfsCommand
|
||||
{
|
||||
#region GitTfsCommand Members
|
||||
private readonly GitTfsCommand fetch;
|
||||
private readonly Fetch fetch;
|
||||
private readonly Globals globals;
|
||||
|
||||
public IEnumerable<IOptionResults> ExtraOptions
|
||||
@@ -20,9 +20,9 @@ namespace Sep.Git.Tfs.Commands
|
||||
get { return this.MakeNestedOptionResults(fetch); }
|
||||
}
|
||||
|
||||
public Pull(Globals globals)
|
||||
public Pull(Globals globals, Fetch fetch)
|
||||
{
|
||||
fetch = ObjectFactory.GetNamedInstance<GitTfsCommand>("fetch");
|
||||
this.fetch = fetch;
|
||||
this.globals = globals;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user