Skip to content

Setup remote is not working when git user is not defined #21

@jjlk

Description

@jjlk

What happened?

When running tracksuite for the first time (ts.remote_setup) on a server that does not have a default git user we got an error. This error drove me crazy a few time when dealing with bare servers.

Here is the error:

ecflow-user@de-ecflow-prod:/ec/vol/ifs/d1/ecdest/0001$ git commit -am 'first commit'
Author identity unknown

*** 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 <ecflow-user@de-ecflow-prod.lumi.apps.dte.destination-earth.eu>) not allowed

Let's add a check to see a user is defined? It could be the user from the remote server, right?

What are the steps to reproduce the bug?

Run tracksuite on a server where not git user is defined.

Version

ALl

Platform (OS and architecture)

All

Relevant log output

Accompanying data

No response

Organisation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions