Skip to content
This repository was archived by the owner on Nov 27, 2019. It is now read-only.
This repository was archived by the owner on Nov 27, 2019. It is now read-only.

git user.email and user.name are required, otherwise the initial git commit fails #6

@StevenMaude

Description

@StevenMaude

https://bitbucket.org/sensiblecode/data-services-scraper-template/issues/42/git-useremail-and-username-are-required

Steven Maude:

Can be an issue on boxes, where it's not really ideal to set these in .gitconfig and if the user doesn't pass through their current environment settings.

A solution might be to check if these variables are already set and, if not, prompt the user for a name and email, then set them in the current environment:

export GIT_AUTHOR_EMAIL="some@mail.com"
export GIT_AUTHOR_NAME="Some Name"
export GIT_COMMITTER_EMAIL=${GIT_AUTHOR_EMAIL}
export GIT_COMMITTER_NAME=${GIT_AUTHOR_NAME}

(I do this manually to workaround my non-standard git config.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    legacyIssue moved from Bitbucket

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions