Remove "The target folder is not empty!" warning
By ch...@brass9.com on April 16, 2013 22:04 (imported from Google Code)
What steps will reproduce the problem?
- Right-click any existing folder with at least one file in it
- TortoiseGit > Git Create repository here...
- OK
- Get unnecessary warning that it's not an empty directory
What is the expected output? What do you see instead?
Creating a git repo in a directory you've already done some work in is a normal use case - not strange, and not dangerous. This warning dialog is unnecessary and really doesn't belong in the Create repo flow. If the user accidentally clicked this, the "Make it Bare" dialog already gives them an opportunity to cancel, and Undo is cheap (delete the .git dir).
This also makes no sense relative to normal git flow - this command is equivalent to simply What steps will reproduce the problem?
- Right-click any existing folder with at least one file in it
- TortoiseGit > Git Create repository here...
- OK
- Get unnecessary warning that it's not an empty directory
What is the expected output? What do you see instead?
Creating a git repo in a directory you've already done some work in is a normal use case - not strange, and not dangerous. This warning dialog is unnecessary and really doesn't belong in the Create repo flow. If the user accidentally clicked this, the "Make it Bare" dialog already gives them an opportunity to cancel, and Undo is cheap (delete the .git dir).
This also makes no sense relative to normal git flow - this command is equivalent to simply git initWhat steps will reproduce the problem?
- Right-click any existing folder with at least one file in it
- TortoiseGit > Git Create repository here...
- OK
- Get unnecessary warning that it's not an empty directory
What is the expected output? What do you see instead?
Creating a git repo in a directory you've already done some work in is a normal use case - not strange, and not dangerous. This warning dialog is unnecessary and really doesn't belong in the Create repo flow. If the user accidentally clicked this, the "Make it Bare" dialog already gives them an opportunity to cancel, and Undo is cheap (delete the .git dir).
This also makes no sense relative to normal git flow - this command is equivalent to simply `git init, and on the command line this couldn't be cheaper - 0 annoying prompts, no warnings you're doing something crazy - you just get the exact same .git folder and off you go to use git here.
What version of TortoiseGit and msysgit are you using? On
what operating system?
TortoiseGit 1.8.2.0
1.7.11.msysgit.1
Win7 64 Home Premium