summaryrefslogtreecommitdiff
path: root/pack.h
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2017-04-11 15:47:13 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-04-13 18:33:11 -0700
commit3e8b7d3c77c464b29f7f3e0627ca7354f7de433a (patch)
tree0baf768667701ea44eb67bd58d512ac82cf496fa /pack.h
parentsha1_name: make wraparound of the index into ring-buffer explicit (diff)
downloadtgif-3e8b7d3c77c464b29f7f3e0627ca7354f7de433a.tar.xz
has_sha1_file: don't bother if we are not in a repository
Most callers to this function already require that they are in a git repository, but there is an exception: "git apply" uses has_sha1_file to avoid work if the result of applying a binary patch is already present in the repository. When run outside any repository, this produces an error: fatal: BUG: setup_git_env called without repository Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack.h')
0 files changed, 0 insertions, 0 deletions