rugged icon indicating copy to clipboard operation
rugged copied to clipboard

Add support for custom extensions

Open captn3m0 opened this issue 3 years ago • 1 comments

Refs:

  • https://github.com/libgit2/libgit2/pull/6031
  • https://github.com/libgit2/libgit2sharp/pull/1908
  • https://github.com/rust-lang/git2-rs/pull/791

captn3m0 avatar Mar 24 '22 04:03 captn3m0

I haven't traced this down yet, but this is becoming a showstopper with libgit upgrade to 1.6.

Setup

Create a bare repository with the partialClone extension:

mkdir r
git init --bare .
git config  extensions.partialClone true
git fetch --quiet --tags --filter=blob:none --depth=1 https://github.com/captn3m0/jekyll-sqlite.git

Test script:

require 'rugged'
repo = Rugged::Repository.bare 'r'

It fails on rugged 1.6.2+:

test.rb:3:in `bare': unsupported extension name extensions.partialclone (Rugged::RepositoryError)
	from test.rb:3:in `<main>'

but works fine on rugged 1.5.1.

captn3m0 avatar Jun 08 '23 07:06 captn3m0