mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-03 19:17:07 -05:00 
			
		
		
		
	Merge pull request #608 from return42/fix-translation-commit
[fix] weblate: separate commit description from commit body
This commit is contained in:
		
						commit
						5c710e1285
					
				
							
								
								
									
										2
									
								
								manage
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								manage
									
									
									
									
									
								
							@ -229,7 +229,7 @@ weblate.translations.commit() {
 | 
				
			|||||||
                -d "searx/translations"
 | 
					                -d "searx/translations"
 | 
				
			||||||
        # git add/commit (no push)
 | 
					        # git add/commit (no push)
 | 
				
			||||||
        commit_body=$(cd "${TRANSLATIONS_WORKTREE}"; git log --pretty=format:'%h - %as - %aN <%ae>' "${existing_commit_hash}..HEAD")
 | 
					        commit_body=$(cd "${TRANSLATIONS_WORKTREE}"; git log --pretty=format:'%h - %as - %aN <%ae>' "${existing_commit_hash}..HEAD")
 | 
				
			||||||
        commit_message=$(echo -e "[translations] update\n${commit_body}")
 | 
					        commit_message=$(echo -e "[translations] update from Weblate\n\n${commit_body}")
 | 
				
			||||||
        git add searx/translations
 | 
					        git add searx/translations
 | 
				
			||||||
        git commit -m "${commit_message}"
 | 
					        git commit -m "${commit_message}"
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user