You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
When I create a junction to a directory within a git repository and run git clean -d, the underlying files in the directory being pointed to by the junction gets deleted.
To reproduce:
Using git bash, create a folder with a file that will later be a junction in a git repository.
mkdir afolder
echo "some text" > afile.txt
Using git bash, create a repository git init arepo
Using windows command prompt, navigate to the repository and create a junction to the folder created in step 1. mklink /J C:\arepo\junctionfolder C:\afolder
Run git clean git clean -df
The file created in step 1 has been deleted. Should git clean -d stop when it encounters a junctioned directory and only delete the junction and not all the files in the junction?
The text was updated successfully, but these errors were encountered:
* Makefile.am (MAKETESTS): New variable split out of TESTS.
(CLEANFILES): Replace TESTS with BUILDTESTS and MAKETESTS.
* Makefile.in: Regenerate.
Fixesmsysgit#81
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I create a junction to a directory within a git repository and run git clean -d, the underlying files in the directory being pointed to by the junction gets deleted.
To reproduce:
mkdir afolder echo "some text" > afile.txt
Using git bash, create a repository
git init arepo
Using windows command prompt, navigate to the repository and create a junction to the folder created in step 1.
mklink /J C:\arepo\junctionfolder C:\afolder
Run git clean
git clean -df
The file created in step 1 has been deleted. Should git clean -d stop when it encounters a junctioned directory and only delete the junction and not all the files in the junction?
The text was updated successfully, but these errors were encountered: