Git clone fixed

This commit is contained in:
2018-07-23 17:15:28 +02:00
parent e75558b01f
commit 2c3d81b950
8 changed files with 28 additions and 16 deletions

View File

@ -6,7 +6,8 @@
"Banner": "/images/yavsc.png",
"HomeViewName": "Home",
"FavIcon": "/favicon.ico",
"Icon": "/images/yavsc.png"
"Icon": "/images/yavsc.png",
"GitRepository": "testingrepo"
},
"Logging": {
"IncludeScopes": true,

View File

@ -3,9 +3,9 @@
"lockfileVersion": 1,
"dependencies": {
"ansi-to-html": {
"version": "0.6.4",
"resolved": "https://registry.npmjs.org/ansi-to-html/-/ansi-to-html-0.6.4.tgz",
"integrity": "sha512-XuUGfj3zOAg3/NCU7Oyf9PaCyFuDVj8dzMqezMycPxo5U52atXt+R4L/zW7ETNA2GTjyj/KGBVEFI8sgPWUu2w==",
"version": "0.6.6",
"resolved": "https://registry.npmjs.org/ansi-to-html/-/ansi-to-html-0.6.6.tgz",
"integrity": "sha512-90M/2sZna3OsoOEbSyXK46poFnlClBC53Rx6etNKQK7iShsX5fI5E/M9Ld6FurtLaxAWLuAPi0Jp8p3y5oAkxg==",
"requires": {
"entities": "1.1.1"
}

View File

@ -24,7 +24,14 @@
"Chat"
]
},
"tooling": {
"exclude": [
"testingrepo",
"wwwroot",
"node_modules",
"bower_components",
"contrib"
],
"tooling": {
"defaultNamespace": "test"
},
"dependencies": {

View File

@ -12,7 +12,7 @@ namespace test
[Fact]
void TestNodeJsForAnsitohtml ()
{
var procStart = new ProcessStartInfo("nodejs", "node_modules/ansi-to-html/bin/ansi-to-html");
var procStart = new ProcessStartInfo("node", "node_modules/ansi-to-html/bin/ansi-to-html");
procStart.UseShellExecute = false;
procStart.RedirectStandardInput = true;
procStart.RedirectStandardOutput = true;
@ -37,6 +37,7 @@ namespace test
var encoded = GetStream(proc.StandardOutput);
var reader = new StreamReader(encoded);
var txt = reader.ReadToEnd();
Console.WriteLine(txt);
}

View File

@ -6,6 +6,7 @@ using System;
using System.Linq;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Builder.Internal;
using Microsoft.Data.Entity;
using Microsoft.Dnx.Compilation.CSharp;
using Microsoft.Dnx.Runtime;
using Microsoft.Extensions.Configuration;
@ -39,7 +40,7 @@ namespace test
var dbc = _serverFixture._app.Services.GetService(typeof(ApplicationDbContext)) as ApplicationDbContext;
var firstProject = dbc.Projects.FirstOrDefault();
var firstProject = dbc.Projects.Include(p=>p.Repository).FirstOrDefault();
Assert.NotNull (firstProject);
var clone = new GitClone(_serverFixture._siteSetup.GitRepository);