Code

fetch: Reset remote refs list each time fetch_main is called
authorSanti Béjar <sbejar@gmail.com>
Fri, 29 Sep 2006 18:05:40 +0000 (20:05 +0200)
committerJunio C Hamano <junkio@cox.net>
Sat, 30 Sep 2006 01:54:13 +0000 (18:54 -0700)
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>
git-fetch.sh

index bcc67ab0b02d346122748d353f807723fe2390cb..f1522bd49a2fc1c3106c6b2ed0a38af0a9ff72de 100755 (executable)
@@ -257,6 +257,7 @@ fi
 fetch_main () {
   reflist="$1"
   refs=
+  rref=
 
   for ref in $reflist
   do