Hello,
I want to call a phabricator api from my SVN pre-commit hook.
Here is a sample pre-commit hook script :
"
#!/bin/sh
export PATH="$PATH:/home/user/.arcrc"
echo "Hello..." >> /tmp/pre_commit.txt
echo '{"status":"status-accepted", "ids":[27]}' | /home/user/arcanist/arcanist/bin/arc --conduit-uri="http://phab-ip-address/" call-conduit differential.query >> /tmp/pre_commit.txt
"
This script on executing gives me the error :
"
Usage Exception: YOU NEED TO AUTHENTICATE TO CONTINUE
You are trying to connect to a server (10.74.75.158) that you do not have any credentials stored for.
To retrieve and store credentials for this server, run this command:
$ arc --conduit-uri='http://10.74.75.158/api/' install-certificate
"
Please reply if anyone knows the answer.
Thanks.