From e0745311638b1d5e63029cade4dd2295b3a1470c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Fr=C3=A9rot?= Date: Tue, 31 Dec 2024 13:35:11 +0100 Subject: [PATCH] do not set global values for git variables --- rtenets | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtenets b/rtenets index 2d79996..3269641 100755 --- a/rtenets +++ b/rtenets @@ -152,15 +152,15 @@ set_git_config() { while ! [[ -n "${value}" ]]; do value="$(enter "new value for ${param}: ")" done - \git config --global "${param}" "${value}" - info "setting new value for ${param}: '$(git config "${param}")'" + \git config "${param}" "${value}" + info "setting new value for ${param}: '$(\git config "${param}")'" printf "${value}" } # Get value of git config parameter, set if unset get_git_config() { local param="$1" - local value="$(git config "${param}")" + local value="$(\git config "${param}")" if ! [[ -n "${value}" ]]; then warning "git ${param} is unset" value="$(set_git_config "${param}")"