GIT_TERMINAL_PROMPT=0
This commit is contained in:
parent
db8b06c509
commit
9949d48b6a
3 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue