only look for new version if doing format
This commit is contained in:
		@ -21,7 +21,7 @@ def get_version(build=0,version_format=None,dot=False):
 | 
				
			|||||||
        logger.debug("v_hash and c_hash do not match!")
 | 
					        logger.debug("v_hash and c_hash do not match!")
 | 
				
			||||||
        branch = subprocess.Popen(['git', 'rev-parse', '--abbrev-ref', 'HEAD'], stdout=subprocess.PIPE,
 | 
					        branch = subprocess.Popen(['git', 'rev-parse', '--abbrev-ref', 'HEAD'], stdout=subprocess.PIPE,
 | 
				
			||||||
                            stderr=DEVNULL, cwd='.').stdout.read().decode('utf-8').rstrip()
 | 
					                            stderr=DEVNULL, cwd='.').stdout.read().decode('utf-8').rstrip()
 | 
				
			||||||
        # Find the next version 
 | 
					        if version_format:
 | 
				
			||||||
            semver = SemVer()
 | 
					            semver = SemVer()
 | 
				
			||||||
            semver.merged_branch = branch
 | 
					            semver.merged_branch = branch
 | 
				
			||||||
            version_type = semver.get_version_type()
 | 
					            version_type = semver.get_version_type()
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user