Set user info during git setup

This commit is contained in:
Manuel Thalmann 2024-08-23 02:01:16 +02:00
parent ea9a5408d2
commit 0d53ba8b01

View file

@ -59,6 +59,19 @@ $null = New-Module {
}
}
if ($User) {
$displayName = Get-UserConfig "displayName";
$mailAddress = Get-UserConfig "mailAddress";
if ($displayName) {
Set-GitConfig "user.name" $displayName;
}
if ($mailAddress) {
Set-GitConfig "user.email" $mailAddress;
}
}
# Git Flow
. {
$dir = New-TemporaryDirectory;