mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Hopefully fix semver versioning breakage caused by non-master merge commits
This commit is contained in:
		
							parent
							
								
									0a9b34d121
								
							
						
					
					
						commit
						a22da8009f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -10,7 +10,7 @@ TAG=$(git describe --abbrev=0 --tags --match="v[0-9]*\.[0-9]*\.0" 2>/dev/null)
 | 
				
			||||||
MERGE=$(git rev-list $TAG..master --grep "from $DEVELOPBRANCH" 2>/dev/null | head -n 1)
 | 
					MERGE=$(git rev-list $TAG..master --grep "from $DEVELOPBRANCH" 2>/dev/null | head -n 1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Get the number of merges since the last merge to master
 | 
					# Get the number of merges since the last merge to master
 | 
				
			||||||
PATCH=$(git rev-list $TAG..master --count --merges --grep="from $DEVELOPBRANCH" 2>/dev/null)
 | 
					PATCH=$(git rev-list $TAG..master --count --merges --grep="from $DEVELOPBRANCH" --first-parent master 2>/dev/null)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Decide whether we should prepend the version with "v" - the default is that
 | 
					# Decide whether we should prepend the version with "v" - the default is that
 | 
				
			||||||
# we do because we use it in git tags, but we might not always need it
 | 
					# we do because we use it in git tags, but we might not always need it
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue