GitCommands.GitCommands.Fetch C# (CSharp) Method

Fetch() public static method

public static Fetch ( string remote, string branch ) : string
remote string
branch string
return string
        public static string Fetch(string remote, string branch)
        {
            remote = FixPath(remote);

            Directory.SetCurrentDirectory(Settings.WorkingDir);

            RunRealCmd("cmd.exe", " /k \"\"" + Settings.GitCommand + "\" " + FetchCmd(remote, null, branch) + "\"");

            return "Done";
        }
GitCommands