We’re using CircleCI with BitBucket integration. This works great - we commit, it builds. No problem there.
As part of our process, we also need to interact with a Github repo as part of our deployment (it’s a long story). Anyway, my plan was to execute the following git commands under our “deployment” in circle.yml:
- git config --global user.email “”
- git config --global user.name “”
- mkdir /home/ubuntu/foo
- cd /home/ubuntu/foo
- git init
- git remote add … (adding the Github remote)
- git fetch…
- do some things…
- git merge…
- git push…
We’ve uploaded the private SSH key to the Github repo in CircleCI. However, when we get to the “git fetch” step, we’re getting the following:
-platform: git-upload-pack: unknown error.
fatal: The remote end hung up unexpectedly
From what I’ve read, this is likely due to git not picking up the correct SSH key, however, people running into that problem usually see “permission denied”. We’re not seeing that.
Interestingly, if I enable SSH on the build and manually perform that exact same steps above, this works perfectly.
So, I’m just stuck at this point. I feel like I’ve tried everything I know to do and just can’t get anywhere.
Any help would be much appreciated. Thanks.