]> git.ipfire.org Git - thirdparty/git.git/commit - remote.c
fetch: do not create ref from empty name
authorClemens Buchacher <drizzd@aon.at>
Wed, 17 Jun 2009 13:38:36 +0000 (15:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Jun 2009 16:55:34 +0000 (09:55 -0700)
commit3eb9699733355d27fd5442492d66ec3c759e0c8b
tree78046a0b4106182974d86ea25110009c4e231645
parent50a991ec46d57ffc4b7fbd0e8a13182dab3cd5de
fetch: do not create ref from empty name

Previously, the refspec "<src>:" would be expanded to
"<src>:refs/heads/". Instead, treat an empty <dst> just like refspecs
without a colon.

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c