sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
276 stars 14 forks source link

Cannot open reftable git repo #1912

Open rexpan opened 6 months ago

rexpan commented 6 months ago

Version info

Description

A description of what the bug is.

Steps to reproduce

Steps to reproduce the behavior:

  1. Clone or init some repo git clone git@github.com:__/__.git --ref-format=reftable with --ref-format=reftable
  2. Open the repo with Sublime Merge
  3. Sublime Merge report the repo is invalid

Expected behavior

Sublime Merge can operate as regular git repo

Screenshots

Screenshot 2024-05-07 at 2 20 55 PM

themilkman commented 6 months ago

Can confirm, no commits/branches/.. are shown, all files are marked as staged. SublimeText btw behaves in the same way. (It might be obvious due to the iirc self implemented git read logic for SM/ST and the reftable format being brand new in git version 2.45)

Update: Btw, now I understand that ".invalid" is the parsed from .git/HEAD in a reftable repo. Maybe SM could at least use this to handle/detect the reftable repo and give an info message to the user.