Gitlab命令无法通过IIS Web应用程序运行

时间:2019-04-03 12:20:03

标签: c# iis gitlab

我需要克隆gitlab项目并通过c#应用程序获取提交详细信息。我可以通过命令行和mvc应用程序在我的机器上执行所有gitlab命令,例如克隆,提取,获取,显示等。在IIS服务器上部署应用程序时,相同的命令不起作用。 clone和pull命令不起作用,它们只是挂起而不会产生任何输出。有人可以告诉我要使gitlab命令通过Web应用程序工作需要进行哪些设置。我已经花了4天时间解决此问题,但仍然无法解决。我的C#代码在

下面
            compiler.StartInfo.FileName = @"C:\Windows\System32\cmd.exe";
            compiler.StartInfo.Arguments = "git pull";
            compiler.StartInfo.UseShellExecute = false;
            compiler.StartInfo.WorkingDirectory = local_repository;
            compiler.StartInfo.RedirectStandardOutput = true;
            compiler.StartInfo.RedirectStandardError = true;
            compiler.StartInfo.RedirectStandardInput = true;
            compiler.StartInfo.CreateNoWindow = true;
            compiler.StartInfo.Verb = "runas";
            compiler.StartInfo.ErrorDialog = false;
            compiler.Start();
            try
            {

                compiler.WaitForExit();
                exitcode = compiler.ExitCode;
            }


   git clone "my_gitlab_url"
   git pull

0 个答案:

没有答案