Commit c3d4063
committed
vpm: detect unpushed commits on detached HEAD too
`git rev-list --branches --not --remotes` only walks local branch refs,
so it misses local commits made on a detached HEAD — which is exactly
the state vpm leaves a versioned install in (`git clone -b <tag>`).
Add `HEAD` to the rev-list so a clean working tree with a local commit
on a detached HEAD is also detected.1 parent 8e9f622 commit c3d4063
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
186 | 189 | | |
187 | 190 | | |
188 | 191 | | |
| |||
0 commit comments