-
Notifications
You must be signed in to change notification settings - Fork 723
Description
Hi,
the version 0.27 added the feature "Add support of .gitignore to ignore files in clone and init commands".
Unfortunateley the .gitignore file is also supported on the daily git tfs fetch command.
And this is very strange behavior in my opinion.
It breaks the "normal" git workflow. A file, which should not tracked through a .gitignore pattern should not be added to the repository. But i can add it with git add -f FileToBeIgnored.txt.
When i fetch a remote who has changes with ignored files included, i expect, that these files are added to the working copy, regardless of it is ignored through a .gitignore pattern or not.
This is the way git-only scenarios works. (local and remote are git-repositories, no tfs involved)
In version 0.25.1 it works as expected and with the new version 0.27 it doesn't work anymore.
Very strange and dangerous because this beavior is hard to detect and not common to the git standard behavior.
Please think about your decision and fix it or make the use of the .gitingore optionally for example.
In the meantime, i switched back to 0.25.1 or have to do the following steps to clone a tfs repository with all committed files:
- mv .gitignore .gitignore_off
- git tfs fetch --all
- mv .gitignre .gitignore_off .gitignore
strange ;)
Greetings,
Andreas