mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	jenkins-build: git clean before running fdroid cli tests
				
					
				
			Otherwise, `fdroid init` will fail since the old repo files are present.
This commit is contained in:
		
							parent
							
								
									d06f05e9c8
								
							
						
					
					
						commit
						7d6d827e0b
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -72,6 +72,7 @@ if [ -e fdroiddata ]; then
 | 
			
		|||
    git remote update -p
 | 
			
		||||
    git checkout master
 | 
			
		||||
    git reset --hard origin/master
 | 
			
		||||
    # no don't `git clean` here, it'll wipe the APKs in unsigned/
 | 
			
		||||
else
 | 
			
		||||
    git clone https://gitlab.com/fdroid/fdroiddata.git fdroiddata
 | 
			
		||||
    cd fdroiddata
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -67,6 +67,7 @@ if [ -e fdroiddata ]; then
 | 
			
		|||
    git remote update -p
 | 
			
		||||
    git checkout master
 | 
			
		||||
    git reset --hard origin/master
 | 
			
		||||
    git clean -fdx
 | 
			
		||||
    cd ..
 | 
			
		||||
else
 | 
			
		||||
    git clone --depth 1 https://gitlab.com/fdroid/fdroiddata.git fdroiddata
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue