Commit eb5e8d9
fix tag detection in linked worktrees
Previously, tags were not detected when they were checked out in a
separate linked worktree. This occurred because gitstatus tried to read
from `refs/tags` relative to the worktree-specific `.git` directory.
However, since tags are shared refs, `refs/tags` will never exist there,
but rather in the global git-dir (see the "REFS" section in
git-worktree(1)).
To fix this, remove the `worktrees/*` suffix from the repository path
when needed.1 parent 44504a2 commit eb5e8d9
1 file changed
+21
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
103 | 122 | | |
104 | 123 | | |
105 | 124 | | |
| |||
151 | 170 | | |
152 | 171 | | |
153 | 172 | | |
154 | | - | |
| 173 | + | |
155 | 174 | | |
156 | 175 | | |
157 | 176 | | |
| |||
175 | 194 | | |
176 | 195 | | |
177 | 196 | | |
178 | | - | |
| 197 | + | |
179 | 198 | | |
180 | 199 | | |
181 | 200 | | |
| |||
0 commit comments