mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 21:25:42 +00:00 
			
		
		
		
	Bump version string
This commit is contained in:
		| @@ -4,7 +4,7 @@ Provides information on the current InvenTree version | |||||||
|  |  | ||||||
| import subprocess | import subprocess | ||||||
|  |  | ||||||
| INVENTREE_SW_VERSION = "0.0.1" | INVENTREE_SW_VERSION = "0.0.2" | ||||||
|  |  | ||||||
|  |  | ||||||
| def inventreeVersion(): | def inventreeVersion(): | ||||||
| @@ -14,6 +14,8 @@ def inventreeVersion(): | |||||||
|  |  | ||||||
| def inventreeCommitHash(): | def inventreeCommitHash(): | ||||||
|     """ Returns the git commit hash for the running codebase """ |     """ Returns the git commit hash for the running codebase """ | ||||||
|  |  | ||||||
|  |     # TODO - This doesn't seem to work when running under gunicorn. Why is this?! | ||||||
|     commit = str(subprocess.check_output('git rev-parse --short HEAD'.split()), 'utf-8').strip() |     commit = str(subprocess.check_output('git rev-parse --short HEAD'.split()), 'utf-8').strip() | ||||||
|  |  | ||||||
|     return commit |     return commit | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user