From 5d969bd6c6b4a71fbb32ec755c4a5d88a9c7225c Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Sun, 22 May 2011 17:10:58 -0700 Subject: Disabling gc.packrefs --- libpiny/lib/Piny/Repo.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libpiny/lib/Piny/Repo.pm') diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm index 989ed96..4afcf4f 100644 --- a/libpiny/lib/Piny/Repo.pm +++ b/libpiny/lib/Piny/Repo.pm @@ -249,6 +249,8 @@ sub rebuild_git { $ENV{"GIT_DIR"} = $s->path; system( "/usr/bin/git", "config", "gitweb.owner", $s->owner->email->address ) and die "Could not git config gitweb.owner!"; + # packed-refs files aren't modifiable under our permission system and are poorly supported on old version of git anyway. + system( "/usr/bin/git", "config", "gc.packrefs", "0" ) and die "Could not git config gc.packrefs!"; delete $ENV{"GIT_DIR"}; $s->clear_config; -- cgit v1.2.3