Skip to content

Environment variables in .gitfat not working correctly #49

Open
@marcuslvgrn

Description

@marcuslvgrn

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?

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