File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
3
### 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
4
6
5
7
### v1.2.1, 2014-11-21
6
8
- change the way plugin name is expanded. It now uses the http username
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ source "$CURRENT_DIR/shared_functions.sh"
7
7
clone () {
8
8
local plugin=$1
9
9
cd $SHARED_TPM_PATH &&
10
- git clone --recursive $plugin
10
+ GIT_TERMINAL_PROMPT=0 git clone --recursive $plugin
11
11
}
12
12
13
13
# tries cloning:
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ pull_changes() {
20
20
local plugin=" $1 "
21
21
local plugin_path=$( shared_plugin_path " $plugin " )
22
22
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
25
25
}
26
26
27
27
update () {
You can’t perform that action at this time.
0 commit comments