Skip to content

git clean follows junction points #2626

@sunahe

Description

@sunahe

Agent Version and Platform

Agent 2.153.1 running on Windows Server 2012R2 or Windows Server 2019

Azure DevOps Type and Version

Azure DevOps Server 2019.1

What's not working?

When git clean -ffdx is run by the agent as a part of checkout, git recursively follows NTFS junction points and deletes everything in there. That can cause problems when junctions are created into cache folders, and more serious problems when a junction is created into drive root by mistake.

The issue was addressed in git 2.23 by git-for-windows/git#2268 so updating the bundled git to 2.23 or later would resolve this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions