Re: [PATCH/RFC] upload-pack: Fail if cloning empty namespace

2015-06-12 Thread Junio C Hamano
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

[PATCH/RFC] upload-pack: Fail if cloning empty namespace

2015-06-12 Thread Johannes Löthberg
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