Git: Pass only project path to Init Repository dialog

It makes no sense to have the project file here,
and under Windows it even creates confusion
as you have to delete the project file name
from the "Get Existing Directory" dialog.

Change-Id: I51887d5665b4c61b507d64f8bdcc50f3d10c49c4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2020-12-03 14:48:06 +01:00
committed by André Hartmann
parent 79c4df1ea1
commit 1d9be08e90

View File

@@ -640,7 +640,7 @@ void VcsBasePluginPrivate::createRepository()
// Find current starting directory
QString directory;
if (const Project *currentProject = ProjectTree::currentProject())
directory = currentProject->projectFilePath().toString();
directory = currentProject->projectFilePath().absolutePath().toString();
// Prompt for a directory that is not under version control yet
QWidget *mw = ICore::dialogParent();
do {