mirror of
				https://github.com/Klipper3d/klipper.git
				synced 2025-10-31 18:36:09 +01:00 
			
		
		
		
	build: Use git describe --always
Add --always flag to "git describe" command to get a build identifier even if one checks out the repo with a depth parameter that prunes out the last tagged version. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
		| @@ -244,7 +244,7 @@ def git_version(): | ||||
|     if not os.path.exists('.git'): | ||||
|         logging.debug("No '.git' file/directory found") | ||||
|         return "" | ||||
|     ver = check_output("git describe --tags --long --dirty").strip() | ||||
|     ver = check_output("git describe --always --tags --long --dirty").strip() | ||||
|     logging.debug("Got git version: %s" % (repr(ver),)) | ||||
|     return ver | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user