| 1 | #!/bin/bash |
| 2 | # Checks whether the repo is clean and whether tags are available (necessary to correctly produce vllm version at build time) |
| 3 | |
| 4 | if ! git diff --quiet; then |
| 5 | echo "Repo is dirty" >&2 |
| 6 | |
| 7 | exit 1 |
| 8 | fi |
| 9 | |
| 10 | if ! git describe --tags; then |
| 11 | echo "No tags are present. Is this a shallow clone? git fetch --unshallow --tags" >&2 |
| 12 | |
| 13 | exit 1 |
| 14 | fi |