Skip to content

Symlinks Not Working #14

@gilbode

Description

@gilbode

We upgraded the git plugin from 2.2.7 to 2.2.9 and symlinks stopped working. Previously when cloning a repository that contained symlinks they'd be checked out as symlinks, now they are checked out as files.

I think this may be related to this commit which updated jgit version:

46a614e

Between jgit 3.2.0 and 3.3.1 some sort of symlink support was added in these commits:
https://github.com/eclipse/jgit/commit/078a9f60664fee1f7e85f0c3ab3fd067c0f674cc
https://github.com/eclipse/jgit/commit/dd3181603e0a42c46299c25cede66fdbd67da518

The filesystem support to determine if a filesystem supports symlinks is in a separate module which isn't used by the git plugin but the code to determine if symlinks are supported (which writes that info to the local .git/config) is in the main jgit module. What we're seeing is that when hudson clones the reposiotry it sets core.symlinks to false in .git/config.

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