Skip to content

Expand environment variables in .gitfat #81

@repnzscasb

Description

@repnzscasb

When the git repository is shared with collaborators, the git-fat remote might be present in different locations. For example, if the remote is a smb mount, we can't assume that all collaborators will mount the share in the same spot.

I worked around that by using return os.path.expandvars(output) rather than return output in the gitconfig_get function. This way, the base address of the remote could be specified by exporting an environment variable, e.g.:

[rsync]
remote = $SMB_ARCHIVE/gitfat/myrepo

Clearly this change would expand all fields, not just "rsync.remote", so you might prefer a different kind of fix.

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