summaryrefslogtreecommitdiff
path: root/trailer.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-03-23 03:53:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-23 04:39:16 (GMT)
commit1d4974c9bcbe3c9c0611cb056730d49c6b0b6b5e (patch)
tree3d710c85d3e6be3db6663d4628bbb50df66266f5 /trailer.c
parent5c950e9bf098b17bb37e06f7c9f50d24e9d2904f (diff)
downloadgit-1d4974c9bcbe3c9c0611cb056730d49c6b0b6b5e.zip
git-1d4974c9bcbe3c9c0611cb056730d49c6b0b6b5e.tar.gz
git-1d4974c9bcbe3c9c0611cb056730d49c6b0b6b5e.tar.bz2
submodule: use capture_command
In is_submodule_commit_present, we call run_command followed by a pipe read, which is prone to deadlock. It is unlikely to happen in this case, as rev-list should never produce more than a single line of output, but it does not hurt to avoid an anti-pattern (and using the helper simplifies the setup and cleanup). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trailer.c')
0 files changed, 0 insertions, 0 deletions