]> Lady’s Gitweb - Gitweb/commit
gitweb: prepare for repositories with packed refs.
authorJunio C Hamano <redacted>
Tue, 3 Oct 2006 09:30:47 +0000 (02:30 -0700)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
commitf2a0a80628462242d9aea736546d0b9178163b3ae682c498f535b1f9bdd98c93
treeaa83dd7dae723a71ab6102b5641a2084f5c99f30db159e2157b1900669c7f6b1
parent8018cb3bd77596fbd2687f078e0e5add76b848e109828a9aa8ad9876aee69e8e
gitweb: prepare for repositories with packed refs.

When a repository is initialized long time ago with symbolic
HEAD, and "git-pack-refs --prune" is run, HEAD will be a
dangling symlink to refs/heads/ somewhere.

Running -e "$dir/HEAD" to guess if $dir is a git repository does
not give us the right answer anymore in such a case.

Also factor out two places that checked if the repository can be
exported with similar code into a call to a new function,
check_export_ok.

Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.065263 seconds and 4 git commands to generate.