Do not use symrefs for manually created Git refs
commit2164750f1e951c6985b3f9c29663bf94d16553e7
authorLukas Fleischer <lfleischer@archlinux.org>
Thu, 11 Jun 2015 11:58:43 +0000 (11 13:58 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Thu, 11 Jun 2015 12:03:56 +0000 (11 14:03 +0200)
treebb07b18cad23390248f5f0151e7a48578b025e64
parentbd9af5f8931c6ec2e282dda825c51bcdc7d4aa68
Do not use symrefs for manually created Git refs

When creating the refs for the package base branch and the HEAD ref
workaround, directly use commit IDs instead of symrefs. It looks like
Git cannot pack symrefs, so this is expected to improve space
efficiency. Also, since the refs are now only created (or updated) when
new objects are actually received, this fixes a problem with dangling
refs that were created when a user initialized a repository but did not
push anything.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
git-interface/git-serve.py
git-interface/git-update.py