1
0
Fork 0
mirror of synced 2024-12-13 19:05:45 -05:00

GIT_TERMINAL_PROMPT=0

This commit is contained in:
Bruno Sutic 2015-02-08 15:38:55 +01:00
parent db8b06c509
commit 9949d48b6a
No known key found for this signature in database
GPG key ID: 66D96E4F2F7EF26C
3 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,8 @@
# Changelog # Changelog
### master ### 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 ### v1.2.1, 2014-11-21
- change the way plugin name is expanded. It now uses the http username - change the way plugin name is expanded. It now uses the http username

View file

@ -7,7 +7,7 @@ source "$CURRENT_DIR/shared_functions.sh"
clone() { clone() {
local plugin=$1 local plugin=$1
cd $SHARED_TPM_PATH && cd $SHARED_TPM_PATH &&
git clone --recursive $plugin GIT_TERMINAL_PROMPT=0 git clone --recursive $plugin
} }
# tries cloning: # tries cloning:

View file

@ -20,8 +20,8 @@ pull_changes() {
local plugin="$1" local plugin="$1"
local plugin_path=$(shared_plugin_path "$plugin") local plugin_path=$(shared_plugin_path "$plugin")
cd $plugin_path && cd $plugin_path &&
git pull && GIT_TERMINAL_PROMPT=0 git pull &&
git submodule update --init --recursive GIT_TERMINAL_PROMPT=0 git submodule update --init --recursive
} }
update() { update() {