Re: How to not download objects more than needed?

From: Jan Harkes <>
Date: 2006-02-22 12:13:38
On Tue, Feb 21, 2006 at 04:42:34PM -0800, Linus Torvalds wrote:
> 	git pull git://
> and the automatic tag following kicks in, it will first have fetched the 
> objects once, and then when it tries to fetch the tag objects, it will 
> fetch the objects it already fetched _again_ (plus the tags), because it 
> will do the same object pull, but the temporary branch (to be merged) will 
> never have been written as a branch head.

Isn't this easily avoided by fetching the tags first?


diff --git a/ b/
index b4325d9..9c6748f 100755
--- a/
+++ b/
@@ -363,8 +363,6 @@ fetch_main () {
-fetch_main "$reflist"
 # automated tag following
 case "$no_tags$tags" in
@@ -389,6 +387,8 @@ case "$no_tags$tags" in
+fetch_main "$reflist"
 # If the original head was empty (i.e. no "master" yet), or
 # if we were told not to worry, we do not have to check.
 case ",$update_head_ok,$orig_head," in
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at
Received on Wed Feb 22 12:14:29 2006

This archive was generated by hypermail 2.1.8 : 2006-02-22 12:14:40 EST