From 9949d48b6afa105c9e8489324b74789a92270a9a Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Sun, 8 Feb 2015 15:38:55 +0100 Subject: [PATCH] GIT_TERMINAL_PROMPT=0 --- CHANGELOG.md | 2 ++ scripts/install_plugins.sh | 2 +- scripts/update_plugin.sh | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38c895c..c3441e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ### master +- set GIT_TERMINAL_PROMPT=0 when doing `git clone`, `pull` or `submodule update` + to ensure git does not prompt for username/password in any case ### v1.2.1, 2014-11-21 - change the way plugin name is expanded. It now uses the http username diff --git a/scripts/install_plugins.sh b/scripts/install_plugins.sh index 3cefd58..dc2d310 100755 --- a/scripts/install_plugins.sh +++ b/scripts/install_plugins.sh @@ -7,7 +7,7 @@ source "$CURRENT_DIR/shared_functions.sh" clone() { local plugin=$1 cd $SHARED_TPM_PATH && - git clone --recursive $plugin + GIT_TERMINAL_PROMPT=0 git clone --recursive $plugin } # tries cloning: diff --git a/scripts/update_plugin.sh b/scripts/update_plugin.sh index b57f429..8504606 100755 --- a/scripts/update_plugin.sh +++ b/scripts/update_plugin.sh @@ -20,8 +20,8 @@ pull_changes() { local plugin="$1" local plugin_path=$(shared_plugin_path "$plugin") cd $plugin_path && - git pull && - git submodule update --init --recursive + GIT_TERMINAL_PROMPT=0 git pull && + GIT_TERMINAL_PROMPT=0 git submodule update --init --recursive } update() {