Skip to content

Commit 9949d48

Browse files
author
Bruno Sutic
committed
GIT_TERMINAL_PROMPT=0
1 parent db8b06c commit 9949d48

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

33
### master
4+
- set GIT_TERMINAL_PROMPT=0 when doing `git clone`, `pull` or `submodule update`
5+
to ensure git does not prompt for username/password in any case
46

57
### v1.2.1, 2014-11-21
68
- change the way plugin name is expanded. It now uses the http username

scripts/install_plugins.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ source "$CURRENT_DIR/shared_functions.sh"
77
clone() {
88
local plugin=$1
99
cd $SHARED_TPM_PATH &&
10-
git clone --recursive $plugin
10+
GIT_TERMINAL_PROMPT=0 git clone --recursive $plugin
1111
}
1212

1313
# tries cloning:

scripts/update_plugin.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ pull_changes() {
2020
local plugin="$1"
2121
local plugin_path=$(shared_plugin_path "$plugin")
2222
cd $plugin_path &&
23-
git pull &&
24-
git submodule update --init --recursive
23+
GIT_TERMINAL_PROMPT=0 git pull &&
24+
GIT_TERMINAL_PROMPT=0 git submodule update --init --recursive
2525
}
2626

2727
update() {

0 commit comments

Comments
 (0)