Open marcuslvgrn opened 10 years ago
Marcus Lövgren notifications@github.com writes:
I'm trying to use an environment variable in the .gitfat file, like -> cat .gitfat [rsync] remote = localhost:$GIT_FAT_DIR
This is not supported by git config and I'm not interested in supporting it (environment variables cause too many problems in my opinion). I would like to add a local git config (e.g., stored in .git/config) that could be used to override .gitfat on a per-repository basis. Ideally this change would come with the ability to name remotes.
I'm trying to use an environment variable in the .gitfat file, like -> cat .gitfat [rsync] remote = localhost:$GIT_FAT_DIR
and
-> echo $GIT_FAT_DIR /tmp/gitfat
But it gives the result
-> git fat pull Pulling from localhost:$GIT_FAT_DIR Executing: rsync --progress --ignore-existing --from0 --files-from=- localhost:$GIT_FAT_DIR/ /tmp/repo/.git/fat/objects/ GIT_FAT_DIR: Undefined variable. rsync: connection unexpectedly closed (0 bytes received so far) [receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(600) [receiver=3.0.6]
Is it possible to use a variable there, and if so, how do you write it?