Skip to content

Commit

Permalink
ScalarEnlistment: properly store working directory when creating with…
Browse files Browse the repository at this point in the history
…out URL

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
  • Loading branch information
derrickstolee committed Mar 17, 2020
1 parent 0827468 commit 5923279
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Scalar.Common/InvalidRepoException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class InvalidRepoException : Exception
public string RepoPath { get; }

public InvalidRepoException(string repoPath, string message)
: base(message)
: base($"path: '{repoPath}', message: '{message}'")
{
this.RepoPath = repoPath;
}
Expand Down
2 changes: 1 addition & 1 deletion Scalar.Common/ScalarEnlistment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static ScalarEnlistment CreateFromDirectory(

if (createWithoutRepoURL)
{
return new ScalarEnlistment(enlistmentRoot, string.Empty, gitBinRoot, authentication);
return new ScalarEnlistment(enlistmentRoot, workingDirectory, string.Empty, gitBinRoot, authentication);
}

return new ScalarEnlistment(enlistmentRoot, workingDirectory, null, gitBinRoot, authentication);
Expand Down

0 comments on commit 5923279

Please sign in to comment.