diff options
author | Scott Moser <smoser@ubuntu.com> | 2018-01-24 10:25:48 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2018-01-24 10:25:48 -0500 |
commit | 30597f28512fafbe25486df5865b628d859486c6 (patch) | |
tree | 7b7202fa7ed04579f7eef780bf63e98c8fb545cb /tests/unittests/test_net.py | |
parent | df182de41fd75bc0cf2b1de2b511c37527d45475 (diff) | |
download | vyos-cloud-init-30597f28512fafbe25486df5865b628d859486c6.tar.gz vyos-cloud-init-30597f28512fafbe25486df5865b628d859486c6.zip |
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
Diffstat (limited to 'tests/unittests/test_net.py')
0 files changed, 0 insertions, 0 deletions