Bug 385668 - git: revision graph gets confused when head is detached
Summary: git: revision graph gets confused when head is detached
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdevelop
Classification: Applications
Component: VCS: Git (show other bugs)
Version: 5.0.3
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-12 18:39 UTC by Alexandru Stan
Modified: 2017-10-12 23:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).