skaji / mi6

minimal authoring tool for Raku
https://raku.land/zef:skaji/App::Mi6
Artistic License 2.0
54 stars 18 forks source link

remove git --global for correct name/email in multi-copyright envs #164

Closed jaguart closed 1 year ago

jaguart commented 1 year ago

In a mixed copyright development environment, git can be configured to use specific email/name details for different working directories.

As an example, this can be achieved with entries like:

# ~/.gitconfig
[includeIf "gitdir:~/src/jaguart/"]
    path = ~/src/jaguart/.gitconfig-include

And then personal details in src/jaguart can specify the correct name / email for personal projects.

# ~/src/jaguart/.gitconfig-include
[user]
        name = Jeff Armstrong
        email = jeff@jaguart.tech
        signingkey = ...

mi6 v3.0.0 uses the git --global flag, which subverts the intended git behaviour.

This small change simply removes the --global flag on the calls and thereby let's git determine the correct name / email for the current working directory.

Many thanks.

skaji commented 1 year ago

@jaguart Thanks!

jaguart commented 1 year ago

Not sure why github actions are failing - prove6 t xt --verbose is working fine for me on Debian/2022.12