Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
87eb14ec
authored
9 years ago
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix get_driver_version
parent
043d25e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vmdriver.py
+6
-6
No files found.
vmdriver.py
View file @
87eb14ec
...
...
@@ -641,13 +641,13 @@ def get_driver_version():
from
git
import
Repo
try
:
repo
=
Repo
(
path
=
os
.
getcwd
())
lc
=
repo
.
log
()[
0
]
return
{
'branch'
:
repo
.
active_branch
,
'commit'
:
lc
.
id_abbrev
,
lc
=
repo
.
head
.
commit
return
{
'branch'
:
repo
.
active_branch
.
name
,
'commit'
:
lc
.
hexsha
,
'commit_text'
:
lc
.
summary
,
'is_dirty'
:
repo
.
is_dirty
}
except
:
logging
.
exception
(
"Unhandled exception:
"
)
'is_dirty'
:
repo
.
is_dirty
()
}
except
Exception
as
e
:
logging
.
exception
(
"Unhandled exception:
%
s"
,
e
)
return
None
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment