Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-27172

Deleting files from project gives `git rm` error despite working

    XMLWordPrintable

Details

    • Linux/Wayland

    Description

      See the attached project.

      Right click on main.cpp in the Projects pane > Remove ... > Check "Delete file permanently" > Ok > "Remove the file ... (git) > Ok.

      The file seems indeed to be removed from Git, but gives an error:

      14:38:25 Running in /home/ah: /usr/bin/git rm --force main.cpp
      fatal: Kein Git-Repository (oder irgendeines der Elternverzeichnisse): .git
      The command "/usr/bin/git rm --force main.cpp" terminated with exit code 128.
      

      So it looks like the working directory is not correctly set (should be /home/ah/TestRemoveFile) when running the `git rm` command.

      Attachments

        1. Creator-git-rm.png
          120 kB
          André Hartmann
        2. TestRemoveFile.zip
          23 kB
          André Hartmann

        Issue Links

          Activity

            People

              orgads Orgad Shaneh
              aha_1980 André Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: