mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Merge pull request #993 from alexandr-san4ez/T7576-current
T7576: Remove unnecessary code for checking dirty build status
This commit is contained in:
commit
011ad5bd2f
@ -409,9 +409,6 @@ if __name__ == "__main__":
|
||||
repo = git.Repo('.', search_parent_directories=True)
|
||||
# Retrieve the Git commit ID of the repository, 14 charaters will be sufficient
|
||||
build_git = repo.head.object.hexsha[:14]
|
||||
# If somone played around with the source tree and the build is "dirty", mark it
|
||||
if repo.is_dirty():
|
||||
build_git += "-dirty"
|
||||
|
||||
# Retrieve git branch name or current tag
|
||||
# Building a tagged release might leave us checking out a git tag that is not the tip of a named branch (detached HEAD)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user