summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 97561ff)
raw | patch | inline | side by side (parent: 97561ff)
author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 26 May 2008 02:18:01 +0000 (22:18 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 26 May 2008 03:29:30 +0000 (20:29 -0700) |
If a user or group ACL file does not exist in the current tip
revision of the acl repository we will get an error from cat-file
when we ask for that blob as it cannot be resolved. A quick look
at the history by rev-list can tell us if there is a path there
or not.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision of the acl repository we will get an error from cat-file
when we ask for that blob as it cannot be resolved. A quick look
at the history by rev-list can tell us if there is a path there
or not.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/hooks/update-paranoid | patch | blob | history |
index 6e0d97c89facd69db8b01ebdaf09f3cca5e1a28e..ae94822cd3a0a503b77cd86d37f523f19c13a715 100644 (file)
local $ENV{GIT_DIR} = shift;
my $br = shift;
my $fn = shift;
+ return unless git_value('rev-list','--max-count=1',$br,'--',$fn);
info "Loading $br:$fn";
open(I,'-|','git','cat-file','blob',"$br:$fn");
my $section = '';