mirror of
https://github.com/git/git.git
synced 2026-03-14 10:53:25 +01:00
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:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user