Description
Due to
Line 168 in 52f9b34
a checked-out branch on the deploy target will be retained (just moving it's pointer around), leading
Line 135 in 52f9b34
and/or
Line 129 in 52f9b34
to trigger a false positive UpdateNeeded()
if the provided and reset-to rev diverges from the previously checked out branch's remote.
Because the repository is also never checked out to a detached head (as it probably should be when provided with just a rev), the prediction will never converge.
The problem can be resolved manually be checking out a detached head. After that, the above reset --hard
to a specific rev will move HEAD as intended and the checks for incoming and outgoing changes will pass, leading to a convergent prediction.