mirror of
https://github.com/tmux-plugins/tpm.git
synced 2024-12-04 18:58:49 +00:00
GIT_TERMINAL_PROMPT=0
This commit is contained in:
parent
db8b06c509
commit
9949d48b6a
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user