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

Cannot undo changes in git repo

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • Qt Creator 4.14.0-rc1
    • Windows 10 2004 64 bit
      git version 2.29.2.windows.2
    • Windows

    Description

      1. Open a file from a git repository.
        I used tests\manual\debugger\simple\simple_test_app.cpp from Creator's repository, 4.14 branch.
      2. Edit the file and save the changes.
      3. Select "Tools" -> "Git" -> "Current File" -> "Undo Uncommitted Changes..." from the menu.
      4. Confirm with "Yes".
        While this seems to work sometimes, if often fails. In the Version Control view you can then read something like:
        19:45:01 Running in C:\Users\rob\dev\src\creator-squish: "C:\Program Files\Git\cmd\git.exe" checkout HEAD -- tests/manual/debugger/simple/simple_test_app.cpp
        error: unable to unlink old 'tests/manual/debugger/simple/simple_test_app.cpp': Invalid argument
        The command "C:\Program Files\Git\cmd\git.exe" terminated with exit code 255.Cannot checkout "HEAD" of tests/manual/debugger/simple/simple_test_app.cpp in "C:/Users/rob/dev/src/creator-squish": error: unable to unlink old 'tests/manual/debugger/simple/simple_test_app.cpp': Invalid argument
        

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              orgads Orgad Shaneh
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes