Priority: P2: Important
Affects Version/s: Qt Creator 4.15.0, Qt Creator 6.0.2
Fix Version/s: Qt Creator 7.0.0-beta1
Component/s: Version Control Integration
Environment:Ubuntu 20.04 LTS
Commits:dd70101d7b (qt-creator/qt-creator/7.0) dd70101d7b (qt-creator/qt-creator/master) dd70101d7b (qt-creator/tqtc-qt-creator/master)
- Open a file from a git repository.
- Select "Tools" -> "Git" -> "Local Repository" -> "Branches..." from the menu.
Creator's right sidebar appears, showing the list of branches.
- Right-click on a branch.
- Select "Diff" from the context menu.
Creator's diff viewer will show "Retrieving data failed." In the "Version Control" view, you can read:
The shown list of options does not contain "-m", but the same command succeeds when showing a diff against a revision from a log. So the actual problem seems to be that "git diff" is being executed in the wrong working directory.