diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2016-04-25 17:38:35 +0200 |
---|---|---|
committer | Michael Haggerty <mhagger@alum.mit.edu> | 2016-06-13 11:23:50 +0200 |
commit | 8169d0d06ad721aa54d95f044f4b097d79151ea2 (patch) | |
tree | cad95d43a435cd31887ebf710e68969aeca234e9 /run-command.h | |
parent | refs: resolve symbolic refs first (diff) | |
download | tgif-8169d0d06ad721aa54d95f044f4b097d79151ea2.tar.xz |
lock_ref_for_update(): don't re-read non-symbolic references
Before the previous patch, our first read of the reference happened
before the reference was locked, so we couldn't trust its value and had
to read it again. But now that our first read of the reference happens
after acquiring the lock, there is no need to read it a second time. So
move the read_ref_full() call into the (update->type & REF_ISSYMREF)
block.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Diffstat (limited to 'run-command.h')
0 files changed, 0 insertions, 0 deletions