示例#1
0
 public void Execute()
 {
     if (Dto.Bare)
     {
         GitCommandHelpers.RunRealCmd("cmd.exe", " /k \"\"" + Settings.GitCommand + "\" clone --bare --shared=all \"" + Dto.Source.Trim() + "\" \"" + Dto.Destination.Trim() + "\"\"");
     }
     else
     {
         GitCommandHelpers.RunRealCmd("cmd.exe", " /k \"\"" + Settings.GitCommand + "\" clone \"" + Dto.Source.Trim() + "\" \"" + Dto.Destination.Trim() + "\"\"");
     }
     //GitCommands.RunRealCmd(Settings.GitCommand, "clone \"" + Dto.Source.Trim() + "\" \"" + Dto.Destination.Trim() + "\"");
     Dto.Result = "Done";
 }