Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build scripts spoils global gitconfig file #188

Open
rik-ghub opened this issue Feb 12, 2021 · 0 comments
Open

Build scripts spoils global gitconfig file #188

rik-ghub opened this issue Feb 12, 2021 · 0 comments

Comments

@rik-ghub
Copy link

BuildTools.psm1 contains the function Invoke-Init which has hardcoded calles to git config insite that

This spoils the executing users git config with the effect that later commits for any other repo uses this as Author.

The Build Script should IMHO somhow check if it's running in the CI chain

function Invoke-Init {
    [Alias("Init")]
    [CmdletBinding()]
    param()
    begin {
        Set-BuildEnvironment -BuildOutput '$ProjectPath/Release' -ErrorAction SilentlyContinue
        Add-ToModulePath -Path $env:BHBuildOutput

        git config --global user.email "[email protected]"
        git config --global user.name "AtlassianPS Automated User"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant