git pull issue without user name

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


git pull issue without user name



I hosted a third_party project on server-1/repo1.
This third_party project is added as ExternalProject in repo2 cmake (The real project). The repo2 is our work. Our build environment is docker based.
Inside Docker, I am able to clone the repo1 as per configuration of ExternalProject in repo2 cmake. However git pull aka "UpdateCommand" for External Project is failing. It is failing because I don't have git "user.name" and "user.email" set inside docker. As per my thinking, I don't need git "user.name" etc config inside docker for the third_party repo.



The git fetch works inside docker.
The git pull is going to add merge commit and probably that's why it need git "user.name" etc. To avoid this, I tried


git pull --no-commit,



but still land into this issue.



Does anybody have insight? The "User Name" for user inside Docker is "User" and There is no email for docker user "User".



Error on git pull:


git pull



Please tell me who you are.



Run



git config --global user.email "you@example.com"



git config --global user.name "Your Name"



to set your account's default identity. Omit --global to set the
identity only in this repository.



fatal: empty ident name (for ) not allowed







You just have to provide any name and email, s.t. git can attach that information to commits and such. You could even just choose "you@example.com" and "Your Name".
– Lutz Büch
24 secs ago









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results