summaryrefslogtreecommitdiff
path: root/fetch-pack.c
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2007-02-01 15:52:33 -0500
committerLibravatar Junio C Hamano <junkio@cox.net>2007-02-01 22:24:17 -0800
commit072db2789c21314cfbf43215186341d0b2b47523 (patch)
tree2326e8e1049e6605c8027520b350beb52cdf7414 /fetch-pack.c
parentCorrect comment in prepare_packed_git_one. (diff)
downloadtgif-072db2789c21314cfbf43215186341d0b2b47523.tar.xz
Refactor open_packed_git to return an error code.
Because I want to reuse open_packed_git in a context where I don't want the process to die if the packfile in question is bogus, I'm changing its behavior to return error("...") rather than die("...") when it detects something is wrong with the packfile it was given. Right now we still must die out of use_pack should open_packed_git fail, as none of use_pack's callers are prepared to handle a failure from that function. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fetch-pack.c')
0 files changed, 0 insertions, 0 deletions