Open audleman opened 10 years ago
Is that command the only content of your receiver script?
Nope, full script below:
#!/bin/bash
mkdir -p /home/git/dice && cat | tar -x -C /home/git/dice
cd /home/git/dice
echo "----> Setting up virtualenv ..."
virtualenv venv
source venv/bin/activate
echo "----> Installing requirements.txt ..."
pip install -r requirements.txt
URL=http://requestb.in/1idyodf1
echo "----> Posting to $URL ..."
curl \
-X 'POST' \
-F "repository=$1" \
-F "revision=$2" \
-F "username=$3" \
-F "fingerprint=$4" \
-F contents=@- \
--silent $URL
When I use the
mkdir -p /some/path && cat | tar -x -C /some/path
command specified in the documentation I get an unexpected result. My code is in place, but at the root of my project I also get...and a few more. i.e. some low-level git info that I'm not used to seeing in my repo.
Is this expected behavior or did I do something wrong? I don't see that it'll do any harm, but I'm always a bit spooked by the unexpected while coding.
Thanks, and great project!