aboutsummaryrefslogtreecommitdiff
path: root/send-pack.c
diff options
context:
space:
mode:
authorMartin Ågren <martin.agren@gmail.com>2017-09-09 08:57:17 +0200
committerJunio C Hamano <gitster@pobox.com>2017-09-10 16:36:58 +0900
commit3f5ef95b5e0cc0cbff06f747ba056e132a71033a (patch)
tree5ef5e9112b74b792cc439caf88b66a51287fda14 /send-pack.c
parent851e1fbd01250f56a6e479e1addada220a56e1f7 (diff)
downloadgit-3f5ef95b5e0cc0cbff06f747ba056e132a71033a.tar.gz
git-3f5ef95b5e0cc0cbff06f747ba056e132a71033a.tar.xz
refs/files-backend: correct return value in lock_ref_for_update
In one code path we return a literal -1 and not a symbolic constant. The value -1 would be interpreted as TRANSACTION_NAME_CONFLICT, which is wrong. Use TRANSACTION_GENERIC_ERROR instead (that is the only other return value we have to choose from). Noticed-by: Michael Haggerty <mhagger@alum.mit.edu> Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Martin Ågren <martin.agren@gmail.com> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'send-pack.c')
0 files changed, 0 insertions, 0 deletions