/// <summary> /// Clone a repository and checkout the working directory only if bare == false /// </summary> /// <param name="fromUrl"></param> /// <param name="toPath"></param> /// <param name="bare"></param> /// <returns></returns> public static Repository Clone(string fromUrl, string toPath, bool bare) { CloneCommand cmd = new CloneCommand() { Source = fromUrl, GitDirectory = toPath, Bare = bare, }; return(Clone(cmd)); }
public static Repository Clone(CloneCommand command) { command.Execute(); return(command.Repository); }
public static Repository Clone(CloneCommand command) { command.Execute(); return command.Repository; }
/// <summary> /// Clone a repository and checkout the working directory only if bare == false /// </summary> /// <param name="fromUrl"></param> /// <param name="toPath"></param> /// <param name="bare"></param> /// <returns></returns> public static Repository Clone(string fromUrl, string toPath, bool bare) { CloneCommand cmd = new CloneCommand() { Source = fromUrl, GitDirectory = toPath, Bare = bare, }; return Clone(cmd); }