Skip to content

Error when using a worktree of a bare repository #408

@LucasKuhlemann

Description

@LucasKuhlemann

Using this plugin with a git worktree, where the original repo is bare, results in an error:

[...]
Caused by: org.eclipse.jgit.errors.NoWorkTreeException: Bare Repository has neither a working tree, nor an index
    at org.eclipse.jgit.lib.Repository.getWorkTree (Repository.java:1582)
    at me.qoomon.gitversioning.commons.GitUtil.worktreesFix_getCommonRepository (GitUtil.java:147)
[...]

Whatever the issue is, it's fixed by upgrading to the latest version of jgit (currently 7.5.0.202512021534-r).

I created a pull request for this, could you please take a look @qoomon?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions