Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Jakub Narebski 2006-07-29 22:43:40 +02:00 коммит произвёл Junio C Hamano
Родитель b63fafdfd8
Коммит 5be01bc8d5
1 изменённых файлов: 30 добавлений и 28 удалений

Просмотреть файл

@ -1615,7 +1615,8 @@ sub git_blob_plain {
if (!defined $hash) {
if (defined $file_name) {
my $base = $hash_base || git_read_head($project);
$hash = git_get_hash_by_path($base, $file_name, "blob") || die_error(undef, "Error lookup file.");
$hash = git_get_hash_by_path($base, $file_name, "blob")
or die_error(undef, "Error lookup file.");
} else {
die_error(undef, "No file name defined.");
}
@ -1646,7 +1647,8 @@ sub git_blob {
if (!defined $hash) {
if (defined $file_name) {
my $base = $hash_base || git_read_head($project);
$hash = git_get_hash_by_path($base, $file_name, "blob") || die_error(undef, "Error lookup file.");
$hash = git_get_hash_by_path($base, $file_name, "blob")
or die_error(undef, "Error lookup file.");
} else {
die_error(undef, "No file name defined.");
}