Skip to content

[Bug] scan-repository fails with "core.repositoryformatversion does not support extension: worktreeconfig" in v2.33.0 #1333

@jamesdag

Description

@jamesdag

Regression: works in v2.32.3, fails in v2.33.0 (introduced by the dependency bump in PR #1322).

Root cause: git sparse-checkout writes extensions.worktreeConfig = true into .git/config. The version of go-git pulled in by v2.33.0 validates git repo format extensions strictly and doesn't recognise worktreeConfig, failing immediately at repo open.

Error:

  [Info] Frogbot version: 2.33.0
  [Info] Running Frogbot "scan-repository" command
  [Info] Getting resources (git repository: ...) active watches...
  [Error] core.repositoryformatversion does not support extension: worktreeconfig

Repro: run actions/checkout with sparse-checkout: configured before the Frogbot step, then run frogbot scan-repository.

Workaround: run git sparse-checkout disable before Frogbot runs.

Fix suggestion: upgrade to a go-git version that supports worktreeConfig (standard since git 2.20).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions