Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git clean -fd does not clean Junctions/Symlinks #973

Closed
larsxschneider opened this issue Nov 28, 2016 · 1 comment
Closed

git clean -fd does not clean Junctions/Symlinks #973

larsxschneider opened this issue Nov 28, 2016 · 1 comment
Labels

Comments

@larsxschneider
Copy link
Member

larsxschneider commented Nov 28, 2016

#607 might be related.

Setup

git version 2.11.0.rc3.windows.1
sizeof-long: 4
machine: x86_64

(I got the same behaivor for git 2.8 / 2.9 / 2.10 on Windows)

Microsoft Windows [Version 6.3.9600]

Details

Consider this test script in CMD:

git --version
git init .
git config --local core.symlinks true   # I tried true/false here 
echo $null >> test1.txt
git add .
git commit -m "test"
mklink /J link C:
git clean -fd
git status

I expect git clean to remove the unstaged Junction but instead I get the following:

On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)

        link/

nothing added to commit but untracked files present (use "git add" to track)

Is this behavior by intention or a bug?

Thanks,
Lars

@dscho
Copy link
Member

dscho commented Nov 28, 2016

Junction points are intentionally not handled as if they were symbolic links. See #437 (comment) (or for that matter, all of @kblees' insightful comments on that PR) for details.

@dscho dscho closed this as completed Nov 28, 2016
@dscho dscho added the question label Nov 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants