I know that in Stash 2.9.0 it will be OK, but on Stash 2.8.2:
$ /var/lib/stash/data/repositories/4 (BARE:master) $ find refs -name 'from' -type f
refs/pull-requests/5640/from
refs/pull-requests/5673/from
$ /var/lib/stash/data/repositories/4 (BARE:master) $ find refs -name 'from' -type f
refs/pull-requests/5674/from
It's ~ 1 minute between find's commands. All three pull requests are still in OPEN state after last command.
Does it Stash delete `from` references or i have ghosts on my server? Also one strange thing — the `git ls-remote` return all 'from' references as it exists on disk. Maybe it cached by SSH SCM Cache plugin. Maybe `git ls-remote` read it from database.