mirror of
https://github.com/prometheus/docs.git
synced 2026-02-07 03:44:55 +01:00
For unknown reasons the netlify pipeline ends up in a state where a git worktree is not created after a fresh clone of the repository. The previous implementation checked for the actual checked out working tree and assumed the administrative git worktree files have to exist as well in that case. This change explicitly verifies the existence of both path structures and handles more cases of inconsistencies gracefully. Signed-off-by: Tobias Schmidt <tobidt@gmail.com>