mirror of
				https://github.com/tmux-plugins/tpm.git
				synced 2025-11-04 00:16:05 +00:00 
			
		
		
		
	GIT_TERMINAL_PROMPT=0
This commit is contained in:
		@@ -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() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user