We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41ccce2 commit 1195eb2Copy full SHA for 1195eb2
src/repos/scripts/git-auth.sh
@@ -78,7 +78,9 @@ setup_gitconfig() {
78
79
# Remove the default credential helper
80
if [[ "$auth_gitconfig_scope" == "system" ]]; then
81
- sed -i -E 's/helper =.*//' /etc/gitconfig
+ if [ -f "/etc/gitconfig" ]; then
82
+ sed -i -E 's/helper =.*//' /etc/gitconfig
83
+ fi
84
elif [[ "$auth_gitconfig_scope" == "global" ]]; then
85
git config --global --unset credential.helper
86
elif [[ "$auth_gitconfig_scope" == "local" ]]; then
0 commit comments