https://bugs.kde.org/show_bug.cgi?id=429641

            Bug ID: 429641
           Summary: the generated git folder is not named/parsed correctly
           Product: kdevelop
           Version: 5.6.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: VCS: Git
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: yerimy...@gmail.com
  Target Milestone: ---

SUMMARY
when you fetch a project from kdevelop it does not parse the name of the folder
from git correctly, for example you clone something like
http://www.example.com/merchant.git  the generated folder is called
"merchant.git" instead of "merchant" 

additional info below 

STEPS TO REPRODUCE
1. fetch a project 
2. enter a url https://github.com/Luwx/Lightly.git
3. and get project  

OBSERVED RESULT

the workingDir text box is adds a folder name called "Lightly.git" 


EXPECTED RESULT
the workingDir text box is adds a folder name called "Lightly" with no .git
extension on the folder 

SOFTWARE/OS VERSIONS 
Linux/KDE Plasma: 5.20.3
(available in About System)
KDE Plasma Version: 5.76.0
KDE Frameworks Version: 
Qt Version: 5.15.1

ADDITIONAL INFORMATION
the parsing problem is probably in 
kdevelop/kdevplatform/shell/projectsourcepage.cpp

line 262 

probable fix  
>       QString projectName = m_locationWidget->projectName();
>        projectName = 
> projectName.left(projectName.lastIndexOf(QStringLiteral(".")));
>       QUrl current = QUrl::fromUserInput(currentUrl + projectName);

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to