From 84daf1ae5221fe700794b9840744f2f9bbce1709 Mon Sep 17 00:00:00 2001 From: arturs Date: Wed, 14 Apr 2021 21:41:33 +0300 Subject: [PATCH] fix(plugins): add touch netrc and remove netrc in git auth fn --- plugins/git/internal-functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/git/internal-functions b/plugins/git/internal-functions index a803d7f5e..c3b521296 100755 --- a/plugins/git/internal-functions +++ b/plugins/git/internal-functions @@ -112,10 +112,12 @@ cmd-git-auth() { if [[ -z "$USERNAME" ]]; then dokku_log_info1 "Removing netrc auth entry for host $HOST" netrc unset "$HOST" + rm "${DOKKU_ROOT}/.netrc" return $? fi dokku_log_info1 "Setting netrc auth entry for host $HOST" + touch "${DOKKU_ROOT}/.netrc" netrc set "$HOST" "$USERNAME" "$PASSWORD" }