Johannes Löthberg writes:
> + if (get_git_namespace() && !symref.items) {
> + die("git upload-pack: tried to clone from empty namespace");
> + }
Is this sufficient?
get_git_namespace() returns environment.c::namespace, which is set
up in setup_git_env() by calling expand_nam
Git should fail to clone if trying to clone from an non-existing
ref namespace, since it's the same as a non-existing repository
Signed-off-by: Johannes Löthberg
---
In version 4 of the ArchLinux User Repository, which is a hosting
platform for recepies for building Arch packages, we use Git to
2 matches
Mail list logo