Git push from Bamboo agent doesn't work

git push doesn’t work, failing with following error

STDERR:: To file:///app/eAPIbin/bin/bamboo-agent-home/bin/xml-data/build-dir/_git-repositories-cache/4586a25f15b3280b7b471d8c9c723b4baf1c1567