Merge branches 'mw/pathinfo' and 'lj/refs' into next

* mw/pathinfo:
  gitweb: warn if feature cannot be overridden.

* lj/refs:
  pack-refs: call fflush before fsync.
This commit is contained in:
Junio C Hamano
2006-10-04 23:23:18 -07:00
2 changed files with 5 additions and 0 deletions

View File

@@ -89,6 +89,7 @@ int cmd_pack_refs(int argc, const char **argv, const char *prefix)
die("unable to create ref-pack file structure (%s)",
strerror(errno));
for_each_ref(handle_one_ref, &cbdata);
fflush(cbdata.refs_file);
fsync(fd);
fclose(cbdata.refs_file);
if (commit_lock_file(&packed) < 0)

View File

@@ -124,6 +124,10 @@ sub gitweb_check_feature {
$feature{$name}{'override'},
@{$feature{$name}{'default'}});
if (!$override) { return @defaults; }
if (!defined $sub) {
warn "feature $name is not overrideable";
return @defaults;
}
return $sub->(@defaults);
}