You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
kbrewersq
pushed a commit
to kbrewersq/git-fat
that referenced
this issue
May 21, 2021
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?
The text was updated successfully, but these errors were encountered: