Skip to content

strange safe_directory behavior #585

Closed
@krissik

Description

@krissik

Describe the Bug

I have set safe_directory => True.
If I run puppet it is set as expected but on the next run it is unset again. On another server the directory is always append to .gitconfig so /root/.gitconfig looks like that

[safe]
        directory = /opt/myrepo
        directory = /opt/myrepo
        directory = /opt/myrepo

Expected Behavior

Directory of repository is added to "safe" paragraph at .gitconfig if it is not present and not removed.

Steps to Reproduce

This is how I use vcsrepo

 vcsrepo { $deployment_dir:
        ensure         => latest,
        provider       => git,
        safe_directory => true,
        source         => $buildout_repo,
        revision       => $repo_deployment_branch,
        owner          => $buildout_user,
        group          => $buildout_user,
        excludes       => ['parts', 'bin'],
    }

Environment

  • Version 5.3.0
  • Platform Debian 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions