fatal: unable to look up current user in the passwd file: no such user


If you get this error ‘fatal: unable to look up current user in the passwd file: no such user‘ when run git command in a pod on OpenShift. Then try to to set up two environment variables as below. This worked for me. The reason could be that on OpenShift, the users are not in the /etc/passwd file but just a random UID.

GIT_COMMITTER_NAME
GIT_COMMITTER_EMAIL

Advertisements

2 thoughts on “fatal: unable to look up current user in the passwd file: no such user

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s