mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 14:21:33 +00:00
Fix SnapshotProvider failing on taking_snapshot without changes
This commit is contained in:
parent
2e97d18340
commit
df0e24319d
@ -66,10 +66,14 @@ class SnapshotProvider:
|
||||
'git', 'add',
|
||||
'-A'
|
||||
))
|
||||
self._run((
|
||||
try:
|
||||
self._get_stdout((
|
||||
'git', 'commit',
|
||||
'-m', 'Snapshot'
|
||||
))
|
||||
except CalledProcessError as err:
|
||||
if b'nothing to commit, working tree clean' not in err.output:
|
||||
raise
|
||||
|
||||
def _check_head_not_detached(self):
|
||||
if self._head_detached:
|
||||
|
Loading…
Reference in New Issue
Block a user