Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand environment variables in .gitfat #81

Open
repnzscasb opened this issue May 28, 2018 · 0 comments
Open

Expand environment variables in .gitfat #81

repnzscasb opened this issue May 28, 2018 · 0 comments

Comments

@repnzscasb
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant