Allow leaving aliases unspecified
This commit is contained in:
parent
7fc0a0235c
commit
5f9815d1d9
|
@ -92,8 +92,10 @@ $null = New-Module {
|
|||
# Aliases
|
||||
[PSCustomObject] $aliases = Get-GitConfig "aliases";
|
||||
|
||||
foreach ($alias in ($aliases | Get-Member -MemberType Properties)) {
|
||||
Set-GitConfig "alias.$($alias.Name)" $aliases.$($alias.Name);
|
||||
if ($aliases) {
|
||||
foreach ($alias in ($aliases | Get-Member -MemberType Properties)) {
|
||||
Set-GitConfig "alias.$($alias.Name)" $aliases.$($alias.Name);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue