Bug 385668

Summary: git: revision graph gets confused when head is detached
Product: [Applications] kdevelop Reporter: Alexandru Stan <alex>
Component: VCS: GitAssignee: kdevelop-bugs-null
Status: RESOLVED INTENTIONAL    
Severity: normal CC: mail
Priority: NOR    
Version First Reported In: 5.0.3   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexandru Stan 2017-10-12 18:39:47 UTC
The git vcs plugin seems to be parsing the string "(HEAD detached at origin/master)" as an actual branch name, this seems wrong.

Steps to reproduce:

bash$ git --version
git version 2.15.0.rc0.271.g36b669edcc

bash$ git checkout origin/master # i do this often, without creating a local branch
...
bash$ git branch
* (HEAD detached at origin/master)
  other branches here

Right click file, Git > Revision Graph...

> git rev-list remotes/origin/some-branch '^(HEAD detached at origin/master)'
fatal: bad revision '^(HEAD detached at origin/master)'

Command finished with error UnknownError.
Comment 1 Francis Herne 2017-10-12 23:36:31 UTC
Thanks for reporting! Bad news here, I'm afraid...

The entire revision graph feature was removed in 5.0.4 and later, because it was hppelessly bugged in any situation that we tested. See https://phabricator.kde.org/D4076 .

Patches welcome for a graph view that actually works (or any other VCS improvements, the current status is not great).