send-pack: support pushing from a shallow clone via http
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
c29a7b8b3f
commit
f2c681cf12
@ -209,9 +209,6 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
|
||||
(send_all && args.send_mirror))
|
||||
usage(send_pack_usage);
|
||||
|
||||
if (is_repository_shallow() && args.stateless_rpc)
|
||||
die("attempt to push from a shallow repository");
|
||||
|
||||
if (remote_name) {
|
||||
remote = remote_get(remote_name);
|
||||
if (!remote_has_url(remote, dest)) {
|
||||
|
Reference in New Issue
Block a user