make/lib: komentáře kolem git-rev-parse
This commit is contained in:
		
							parent
							
								
									ac9cb53185
								
							
						
					
					
						commit
						e36410ee82
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -60,12 +60,13 @@ function safe_checkout_branch { | |||
| 	git fetch --all | ||||
| 	# Od teď si musíme dát pozor, abychom nezměnili kód, který právě běží. | ||||
| 	# Zkontrolujeme, že se nemění tahle knihovna a skript, který běží. | ||||
| 	if test $(git rev-parse @:make/lib.sh) != $(git rev-parse "$BRANCH":make/lib.sh) | ||||
| 	# `git rev-parse` dává SHA-1 hashe objektů, vizte manuálovou stránku pro pochopení. | ||||
| 	if test "$(git rev-parse @:make/lib.sh)" != "$(git rev-parse "$BRANCH":make/lib.sh)" | ||||
| 	then | ||||
| 		echo >&2 "Změna v make/lib.sh, prosím pullni manuálně" | ||||
| 		exit 1 | ||||
| 	fi | ||||
| 	if test $(git rev-parse @:"$SCRIPT") != $(git rev-parse "$BRANCH":"$SCRIPT") | ||||
| 	if test "$(git rev-parse @:"$SCRIPT")" != "$(git rev-parse "$BRANCH":"$SCRIPT")" | ||||
| 	then | ||||
| 		echo >&2 "Změna v $SCRIPT, prosím pullni manuálně" | ||||
| 		exit 1 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Pavel "LEdoian" Turinsky
						Pavel "LEdoian" Turinsky