Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/read-version: Fix read-version when in a git worktree.
read-version --json would report bad data when working in a worktree. This is just because in a worktree, .git is not a directory, but rather a metadata file that points to the another path. $ git worktree ../mytree $ cat ../mytree/.git gitdir: /path/to/cloud-init/.git/worktrees/mytree $ rm -Rf ../mytree; git worktree prune
- Loading branch information