giftless
giftless copied to clipboard
Not able to make the quickstart example to work
Pushing to the fake repo fails with
EOFoading LFS objects: 100% (1/1), 1.0 MB | 0 B/s
error: failed to push some refs to '/home/joralf/giftless/fake-remote-repo'
Os: Ubuntu 20.04 git: 2.25.1 git lfs: git-lfs/2.9.2 (GitHub; linux amd64; go 1.13.5) python: Python 3.8.10
Installing giftless
mkdir giftless && cd giftless
python3 -m venv .venv
source .venv/bin/activate
pip install wheel setuptools
pip install giftless
pip install -Ur https://raw.githubusercontent.com/datopian/giftless/master/requirements.txt
Configuration
cat giftless.conf.yaml
# Giftless configuration
AUTH_PROVIDERS:
- giftless.auth.allow_anon:read_write
Running giftless
export GIFTLESS_CONFIG_FILE=giftless.conf.yaml
flask run
* Serving Flask app 'giftless.wsgi_entrypoint' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
2022-04-28 15:17:33,214 werkzeug INFO * Running on http://127.0.0.1:5000 (Press CTRL+C to quit)
In separate terminal
mkdir fake-remote-repo && cd fake-remote-repo
git init --bare
cd ..
git clone fake-remote-repo local-repo
cd local-repo
git lfs install
git lfs track "*.bin"
echo "# This is a Giftless test" > README.md
dd if=/dev/zero of=1mb-blob.bin bs=1024 count=1024
git add README.md 1mb-blob.bin
git config -f .lfsconfig lfs.url http://127.0.0.1:5000/my-organization/test-repo
git add .gitattributes .lfsconfig
git commit -m "Adding some files to track"
git push -u origin master
EOFoading LFS objects: 100% (1/1), 1.0 MB | 0 B/s
error: failed to push some refs to '/home/joralf/giftless/fake-remote-repo'