I am on windows and I have to used makefile to clone a repository. So far simplified the case to:
TE_GIT=git@gitlab.someserver.com:te/te.git
all:
git clone --branch $(TE_BRANCH) $(TE_GIT) TranslationEditor
running the clone command from cmd or powershell works fine.
running via
make -f Makefile.test
produces
Permission denied (publickey).
What I checked?
- my ssh-keys work and are added
- the same version of ssh is called from cmd and makescript
- the same command works from powershell script
Can you give me a hint what else I can check, investigate, try?
EDIT: using nmake works fine.
Somehow make does not use the proper environment.