Basu Silviu
12/06/2022, 1:24 PMdocker run --rm -w ${PWD} -v ${PWD}:${PWD} -e PACT_BROKER_BASE_URL -e PACT_BROKER_USERNAME -e PACT_BROKER_PASSWORD pactfoundation/pact-cli:latest publish ${PWD}/example/pacts --consumer-app-version fake-git-sha-for-demo-$(date +%s) --tag-with-git-branch
fatal: detected dubious ownership in repository at '/home/myuser/workspace/pact-ruby-cli'
To add an exception for this directory, call:
git config --global --add safe.directory /home/myuser/workspace/pact-ruby-cli
PactBroker::Client::Error - Command `git rev-parse --abbrev-ref HEAD` didn't return anything that could be identified as the current branch.
----------
running
git config --global --add safe.directory /home/myuser/workspace/pact-ruby-cli
doesn't fix the err
----------
running
git rev-parse --abbrev-ref HEAD
returns master
Beth (pactflow.io/Pact Broker/pact-ruby)
fatal: detected dubious ownership in repository at '/home/myuser/workspace/pact-ruby-cli'
perceptive tool 😆Beth (pactflow.io/Pact Broker/pact-ruby)
Basu Silviu
12/16/2022, 10:46 AMBasu Silviu
12/18/2022, 11:57 PM