Skip to content

Commit

Permalink
add context argument to the GetRelativeRepositoryPath method
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisRumyantsev committed Jun 5, 2024
1 parent 847e9e7 commit 5453cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Agent.Worker/PluginInternalCommandExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void Execute(IExecutionContext context, Command command)
if(isDefaultWorkingDirectoryRepo)
{
string buildDirectory = context.Variables.Get(Constants.Variables.Pipeline.Workspace);
string repoRelativePath = directoryManager.GetRelativeRepositoryPath(buildDirectory, repositoryPath);
string repoRelativePath = directoryManager.GetRelativeRepositoryPath(buildDirectory, repositoryPath, context);
string repoLocation = Path.Combine(_workDirectory, repoRelativePath);

context.SetVariable(Constants.Variables.System.DefaultWorkingDirectory, repoLocation, isFilePath: true);
Expand Down

0 comments on commit 5453cda

Please sign in to comment.