Inheritance: AbstractFetchCommand
Beispiel #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));
        }
Beispiel #2
0
 public static Repository Clone(CloneCommand command)
 {
     command.Execute();
     return(command.Repository);
 }
Beispiel #3
0
 public static Repository Clone(CloneCommand command)
 {
     command.Execute();
     return command.Repository;
 }
Beispiel #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);
 }