Permission denied (publickey)


I’m using Travis CI with PHP and Drupal to deploy code.
I have git repository with open source project.
Now I’m getting build failed issue in my build log.

This is issue i’m getting in build log. Please help me to resolve the issue

Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
[ExecStack] Exit code 128 Time 0.304s
[error] Unexpected error while searching for remote branch:
For troubleshooting guidance and support, see Acquia BLT support — Acquia Product Documentation
0.652s total time elapsed.

Hey @Bharathi-Vediyam,

You can change your .gitmodules on the fly, try adding the following:

    - sed -i 's/\/\/\//' .gitmodules
    - git submodule update --init --recursive