fetch: Reset remote refs list each time fetch_main is called

This prevents the fetch of the heads again in the second call of fetch_main.

Signed-off-by: Santi Béjar <sbejar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Santi Béjar 2006-09-29 20:05:40 +02:00 committed by Junio C Hamano
parent 18b633cafc
commit 4839bd8a66

View file

@ -257,6 +257,7 @@ fi
fetch_main () {
reflist="$1"
refs=
rref=
for ref in $reflist
do