mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	deploy: separate git-mirror commit message in index-only mode
This commit is contained in:
		
							parent
							
								
									473068f311
								
							
						
					
					
						commit
						9e32913027
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -559,18 +559,18 @@ def upload_to_servergitmirror(
 | 
			
		|||
    logging.info('Mirroring to: ' + remote_url)
 | 
			
		||||
 | 
			
		||||
    if is_index_only:
 | 
			
		||||
        logging.debug(_('Committing index files to git mirror'))
 | 
			
		||||
        files_to_upload = _get_index_file_paths(
 | 
			
		||||
            os.path.join(local_repo.working_tree_dir, 'fdroid', repo_section)
 | 
			
		||||
        )
 | 
			
		||||
        files_to_upload = _remove_missing_files(files_to_upload)
 | 
			
		||||
        local_repo.index.add(files_to_upload)
 | 
			
		||||
        local_repo.index.commit("servergitmirrors: index-only in git-mirror")
 | 
			
		||||
    else:
 | 
			
		||||
        # sadly index.add don't allow the --all parameter
 | 
			
		||||
        logging.debug('Adding all files to git mirror')
 | 
			
		||||
        logging.debug(_('Adding all files to git mirror'))
 | 
			
		||||
        local_repo.git.add(all=True)
 | 
			
		||||
 | 
			
		||||
    logging.debug('Committing files into git mirror')
 | 
			
		||||
    local_repo.index.commit("fdroidserver git-mirror")
 | 
			
		||||
        local_repo.index.commit("servergitmirrors: in git-mirror")
 | 
			
		||||
 | 
			
		||||
    # only deploy to GitLab Artifacts if too big for GitLab Pages
 | 
			
		||||
    if (
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue