From abff1f474c48315039b66aa93f347bbaa1fbea88 Mon Sep 17 00:00:00 2001 From: piotrp Date: Sat, 28 Nov 2015 09:39:56 -0800 Subject: [PATCH] PR Feedback --- src/Microsoft.DotNet.Cli.Utils/PathUtility.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.DotNet.Cli.Utils/PathUtility.cs b/src/Microsoft.DotNet.Cli.Utils/PathUtility.cs index 1806ae76d..afaaf6b0d 100644 --- a/src/Microsoft.DotNet.Cli.Utils/PathUtility.cs +++ b/src/Microsoft.DotNet.Cli.Utils/PathUtility.cs @@ -208,7 +208,7 @@ namespace Microsoft.DotNet.Tools.Common { try { - directoryPath = Path.GetDirectoryName(directoryPath); + directoryPath = Path.GetDirectoryName(path); } catch (ArgumentException) { @@ -222,9 +222,7 @@ namespace Microsoft.DotNet.Tools.Common } string projectRootPath = null; - - directoryPath = directoryPath ?? Directory.GetCurrentDirectory(); - + var directory = new DirectoryInfo(directoryPath); while (projectRootPath == null && directory != null)