Inheritance: AbstractFetchCommand
Exemplo n.º 1
0
        /// <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));
        }
Exemplo n.º 2
0
 public static Repository Clone(CloneCommand command)
 {
     command.Execute();
     return(command.Repository);
 }
Exemplo n.º 3
0
 public static Repository Clone(CloneCommand command)
 {
     command.Execute();
     return command.Repository;
 }
Exemplo n.º 4
0
 /// <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);
 }