Skip to content

Commit

Permalink
adding warning message when Dirty Githash is detected
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 committed Jul 23, 2024
1 parent 0a84a21 commit e50b7ab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/surf/axi/_AxiVersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,11 @@ def printStatus(self):
print("Builder = {}".format(self.Builder.value()))
except Exception:
print("Failed to get %s status" % self)


def _start(self):
super()._start()

# Check for dirty githash
if ( self.GitHash.get() == 0 ):
click.secho(f'WARNING:{self.path} - Dirty GitHash detected!!!', bg='cyan')

0 comments on commit e50b7ab

Please sign in to comment.