git-fetch: Limit automated tag following to only fetched objects
PATCH 7/11 git-fetch: Limit automated tag following to only fetched objects
When we fetch objects with any transport we want to follow (fetch) any tag that refers to an object we just transferred, if automated tag fetching is enabled.
In the past this rule was based on any object that was supposedly reachable by the local repository. However this depended heavily on the transport implementation actually using the object walking system to lookup all reachable objects. In the case of both the native git protocol and the HTTP walker not all objects get looked up; instead only those that are necessary to determine what to fetch are processed. This can cause random behavior for tags where some are fetched and some aren't.
We now redefine the rule to be: "tags are fetched if they refer to an object that was just transferred; that is an object that is new to your repository". This rule is quite simple to understand, you only get a tag if you just got the object it refers to.
Some of the test vectors for t5515 were affected by this as they were listing "not-for-merge" tags in .git/FETCH_HEAD that were being fetched under the old rule but are now not fetched under the new rule. To be perfectly honest I have no idea why they were even fetching under the old rule, and I think that's part of the problem with the old rule. It was very difficult to understand why some things would auto-follow a tag and others wouldn't.
As a bonus side-effect of this change git-fetch will fail early without updating any refs if a bogus server gave us a packfile that doesn't contain all of the objects we need to make a fully reachable ref. This could happen due to a bug on the remote side, where the set of objects to be packed was miscalculated and a valid packfile was sent but one or more objects are missing from it. It has probably never happened in practice but its better to be paranoid in what we accept over the wire then to blindly trust the other peer.
--- builtin-fetch.c | 41 +++++++++++++++++++- t/t5515/fetch.br-branches-default | 2 - t/t5515/fetch.br-branches-default-merge | 2 - ...etch.br-branches-default-merge_branches-default | 2 - t/t5515/fetch.br-branches-default-octopus | 2 - ...ch.br-branches-default-octopus_branches-default | 2 - t/t5515/fetch.br-branches-default_branches-default | 2 - t/t5515/fetch.br-branches-one | 2 - t/t5515/fetch.br-branches-one-merge | 2 - t/t5515/fetch.br-branches-one-merge_branches-one | 2 - t/t5515/fetch.br-branches-one-octopus | 2 - t/t5515/fetch.br-branches-one-octopus_branches-one | 2 - t/t5515/fetch.br-branches-one_branches-one | 2 - t/t5515/fetch.br-config-explicit | 2 - t/t5515/fetch.br-config-explicit-merge | 2 - .../fetch.br-config-explicit-merge_config-explicit | 2 - t/t5515/fetch.br-config-explicit-octopus | 2 - ...etch.br-config-explicit-octopus_config-explicit | 2 - t/t5515/fetch.br-config-explicit_config-explicit | 2 - t/t5515/fetch.br-config-glob | 2 - t/t5515/fetch.br-config-glob-merge | 2 - t/t5515/fetch.br-config-glob-merge_config-glob | 2 - t/t5515/fetch.br-config-glob-octopus | 2 - t/t5515/fetch.br-config-glob-octopus_config-glob | 2 - t/t5515/fetch.br-config-glob_config-glob | 2 - t/t5515/fetch.br-remote-explicit | 2 - t/t5515/fetch.br-remote-explicit-merge | 2 - .../fetch.br-remote-explicit-merge_remote-explicit | 2 - t/t5515/fetch.br-remote-explicit-octopus | 2 - ...etch.br-remote-explicit-octopus_remote-explicit | 2 - t/t5515/fetch.br-remote-explicit_remote-explicit | 2 - t/t5515/fetch.br-remote-glob | 2 - t/t5515/fetch.br-remote-glob-merge | 2 - t/t5515/fetch.br-remote-glob-merge_remote-glob | 2 - t/t5515/fetch.br-remote-glob-octopus | 2 - t/t5515/fetch.br-remote-glob-octopus_remote-glob | 2 - t/t5515/fetch.br-remote-glob_remote-glob | 2 - t/t5515/fetch.br-unconfig | 2 - ...nfig_.._.git_one_tag_tag-one_tag_tag-three-file | 1 - ...h.br-unconfig_.._.git_tag_tag-one_tag_tag-three | 2 - t/t5515/fetch.br-unconfig_branches-default | 2 - t/t5515/fetch.br-unconfig_branches-one | 2 - t/t5515/fetch.br-unconfig_config-explicit | 2 - t/t5515/fetch.br-unconfig_config-glob | 2 - t/t5515/fetch.br-unconfig_remote-explicit | 2 - t/t5515/fetch.br-unconfig_remote-glob | 2 - t/t5515/fetch.master | 2 - ...ster_.._.git_one_tag_tag-one_tag_tag-three-file | 1 - .../fetch.master_.._.git_tag_tag-one_tag_tag-three | 2 - t/t5515/fetch.master_branches-default | 2 - t/t5515/fetch.master_branches-one | 2 - t/t5515/fetch.master_config-explicit | 2 - t/t5515/fetch.master_config-glob | 2 - t/t5515/fetch.master_remote-explicit | 2 - t/t5515/fetch.master_remote-glob | 2 - 55 files changed, 39 insertions(+), 108 deletions(-)
builtin-fetch.c +39 -2
@@ -8,6 +8,9 @@#include "path-list.h" #include "remote.h" #include "transport.h" +#include "diff.h" +#include "list-objects.h" +#include "revision.h" static const char fetch_usage[] ="git-fetch [-a | --append] [--upload-pack <upload-pack>] [-f | --force] [--no-tags] [-t | --tags] [-k | --keep] [-u | --update-head-ok] [--depth <depth>] [-v | --verbose] [<repository> <refspec>...]" ;
@@ -335,14 +338,46 @@ static void store_updated_refs(const char *url, struct ref *ref_map)fclose (fp); } +static void mark_just_fetched_commit (struct commit *commit) +{ +} + +static void mark_just_fetched_object (struct object_array_entry *p) +{ +if (p->item->type ==OBJ_BLOB && !has_sha1_file (p->item->sha1)) +die ("missing blob object '%s'" ,sha1_to_hex (p->item->sha1)); +} +static int fetch_refs (struct transport *transport,struct ref *ref_map) {int ret;free_all_objects (); ret =transport_fetch_refs (transport, ref_map); -if (!ret) +if (!ret) { +const char *args[] = {"rev-list" ,"--objects" ,"--not" ,"--all" ,NULL }; +struct rev_info revs; +struct ref *ref; + +free_all_objects (); +init_revisions (&revs,NULL ); +setup_revisions (ARRAY_SIZE (args) -1 , args, &revs,NULL ); + save_commit_buffer =0 ; + track_object_refs =0 ; + +for (ref = ref_map; ref; ref = ref->next) { +struct object *o =parse_object (ref->old_sha1); +if (o) +add_pending_object (&revs, o,"(just-fetched)" ); + } + +prepare_revision_walk (&revs); +mark_edges_uninteresting (revs.commits, &revs,NULL ); +traverse_commit_list (&revs, + mark_just_fetched_commit, + mark_just_fetched_object);store_updated_refs (transport->url, ref_map); + }transport_unlock_pack (transport);return ret; }
@@ -368,6 +403,7 @@ static struct ref *find_non_local_tags(struct transport *transport,struct ref *ref_map =NULL ;struct ref **tail = &ref_map;const struct ref *ref; +struct object *obj;for_each_ref (add_existing, &existing_refs);for (ref =transport_get_remote_refs (transport); ref; ref = ref->next) {
@@ -392,7 +428,8 @@ static struct ref *find_non_local_tags(struct transport *transport,if (!path_list_has_path (&existing_refs, ref_name) && !path_list_has_path (&new_refs, ref_name) && -lookup_object (ref->old_sha1)) { + (obj =lookup_object (ref->old_sha1)) && + obj->flags &SEEN ) {path_list_insert (ref_name, &new_refs); rm =alloc_ref (strlen (ref_name) +1 );
t/t5515/fetch.br-branches-default +0 -2
@@ -2,7 +2,5 @@ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f branch 'master' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-branches-default-merge +0 -2
@@ -3,7 +3,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-branches-default-merge_branches-default +0 -2
@@ -3,7 +3,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-branches-default-octopus +0 -2
@@ -4,7 +4,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-branches-default-octopus_branches-default +0 -2
@@ -4,7 +4,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-branches-default_branches-default +0 -2
@@ -2,7 +2,5 @@ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f branch 'master' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-branches-one +0 -2
@@ -2,7 +2,5 @@ 8e32a6d901327a23ef831511badce7bf3bf46689 branch 'one' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-branches-one-merge +0 -2
@@ -3,7 +3,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-branches-one-merge_branches-one +0 -2
@@ -3,7 +3,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-branches-one-octopus +0 -2
@@ -3,7 +3,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-branches-one-octopus_branches-one +0 -2
@@ -3,7 +3,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-branches-one_branches-one +0 -2
@@ -2,7 +2,5 @@ 8e32a6d901327a23ef831511badce7bf3bf46689 branch 'one' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-config-explicit +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-config-explicit-merge +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-config-explicit-merge_config-explicit +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-config-explicit-octopus +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-config-explicit-octopus_config-explicit +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-config-explicit_config-explicit +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-config-glob +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-config-glob-merge +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-config-glob-merge_config-glob +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-config-glob-octopus +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-config-glob-octopus_config-glob +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-config-glob_config-glob +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-remote-explicit +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-remote-explicit-merge +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-remote-explicit-merge_remote-explicit +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-remote-explicit-octopus +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-remote-explicit-octopus_remote-explicit +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-remote-explicit_remote-explicit +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-remote-glob +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-remote-glob-merge +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-remote-glob-merge_remote-glob +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-remote-glob-octopus +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-remote-glob-octopus_remote-glob +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-remote-glob_remote-glob +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-unconfig +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-unconfig_.._.git_one_tag_tag-one_tag_tag-three-file +0 -1
@@ -3,6 +3,5 @@ 8e32a6d901327a23ef831511badce7bf3bf46689 tag 'tag-one' of ../ 0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-unconfig_.._.git_tag_tag-one_tag_tag-three +0 -2
@@ -2,6 +2,4 @@ 8e32a6d901327a23ef831511badce7bf3bf46689 tag 'tag-one' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b tag 'tag-three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-unconfig_branches-default +0 -2
@@ -2,7 +2,5 @@ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f branch 'master' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-unconfig_branches-one +0 -2
@@ -2,7 +2,5 @@ 8e32a6d901327a23ef831511badce7bf3bf46689 branch 'one' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-unconfig_config-explicit +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-unconfig_config-glob +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-unconfig_remote-explicit +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.br-unconfig_remote-glob +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.master +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.master_.._.git_one_tag_tag-one_tag_tag-three-file +0 -1
@@ -3,6 +3,5 @@ 8e32a6d901327a23ef831511badce7bf3bf46689 tag 'tag-one' of ../ 0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.master_.._.git_tag_tag-one_tag_tag-three +0 -2
@@ -2,6 +2,4 @@ 8e32a6d901327a23ef831511badce7bf3bf46689 tag 'tag-one' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b tag 'tag-three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.master_branches-default +0 -2
@@ -2,7 +2,5 @@ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f branch 'master' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.master_branches-one +0 -2
@@ -2,7 +2,5 @@ 8e32a6d901327a23ef831511badce7bf3bf46689 branch 'one' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.master_config-explicit +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.master_config-glob +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.master_remote-explicit +0 -2
@@ -5,7 +5,5 @@ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge branch 'three' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
t/t5515/fetch.master_remote-glob +0 -2
@@ -5,7 +5,5 @@ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge branch 'two' of ../ 754b754407bf032e9a2f9d5a9ad05ca79a6b228f not-for-merge tag 'tag-master' of ../ 8e32a6d901327a23ef831511badce7bf3bf46689 not-for-merge tag 'tag-one' of ../ -22feea448b023a2d864ef94b013735af34d238ba not-for-merge tag 'tag-one-tree' of ../ 0567da4d5edd2ff4bb292a465ba9e64dcad9536b not-for-merge tag 'tag-three' of ../ -0e3b14047d3ee365f4f2a1b673db059c3972589c not-for-merge tag 'tag-three-file' of ../ 6134ee8f857693b96ff1cc98d3e2fd62b199e5a8 not-for-merge tag 'tag-two' of ../
Signature · 1 line
1.5.3.5.1622.g41d10
Quoted 7 lines · Shawn O. Pearce
Some of the test vectors for t5515 were affected by this as they were listing "not-for-merge" tags in .git/FETCH_HEAD that were being fetched under the old rule but are now not fetched under the new rule. To be perfectly honest I have no idea why they were even fetching under the old rule, and I think that's part of the problem with the old rule. It was very difficult to understand why some things would auto-follow a tag and others wouldn't.
The old rule was:
Fetch a tag if we have the object that the tag refers to.
So, If you have an object lingering in your repo, even if it is not accessible by any of the refs - eg. it's a left-over from a previous fetch - then the tag was fetched again.
-- Hannes
Quoted 4 lines · Shawn O. Pearce
We now redefine the rule to be: "tags are fetched if they refer to an object that was just transferred; that is an object that is new to your repository". This rule is quite simple to understand, you only get a tag if you just got the object it refers to.
With this new rule a retrospectively pushed tag will never be fetched, right? With our local work flow tags are only ever pushed retrospectively because the tagged commit has to first pass regression tests. So this would be a major regression for us.
I think adding a temporal dependency between the pushing and fetching of branches and tags in this way is likely to cause even more confusing and apparently random behaviour.
Signature · 4 lines
CJ van den Berg mailto:[email protected] xmpp:[email protected]
Quoted 11 lines · CJ van den Berg
Quoted 4 lines · Shawn O. Pearce
We now redefine the rule to be: "tags are fetched if they refer to an object that was just transferred; that is an object that is new to your repository". This rule is quite simple to understand, you only get a tag if you just got the object it refers to.
With this new rule a retrospectively pushed tag will never be fetched, right? With our local work flow tags are only ever pushed retrospectively because the tagged commit has to first pass regression tests. So this would be a major regression for us.
Same for us. Deciding after something has been pushed that "ok, this version works, let's make that one the release" is, I think, fairly common behaviour.
Signature · 3 lines
Andreas Ericsson [email protected] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231
Quoted 4 lines · Shawn O. Pearce
We now redefine the rule to be: "tags are fetched if they refer to an object that was just transferred; that is an object that is new to your repository". This rule is quite simple to understand, you only get a tag if you just got the object it refers to.
In other words, if I do this:
git fetch git-gui master
(which should not follow any tags) when your master is a bit ahead of a new tag in git-gui I do not have, and then immediately afterwards if I do:
git fetch git-gui
I will not get the new tag followed?
If that is what the patch does, it feels like a regression.
The intended behaviour was "when tag following is enabled, they are followed if they refer to an object that is reachable from your existing refs".
But this is quite expensive to compute. If a tag points at a blob that is contained inside a commit that is reachable from a ref, we would need to grep "git rev-list --objects -all" output to find it out. I do not offhand recall what the scripted version did, but I would not be surprised if as an approximation we did the auto-following by "does the pointee exist" check.
What "random behaviour" are you trying to fix?
Quoted 15 lines · Junio C Hamano
Quoted 4 lines · Shawn O. Pearce
We now redefine the rule to be: "tags are fetched if they refer to an object that was just transferred; that is an object that is new to your repository". This rule is quite simple to understand, you only get a tag if you just got the object it refers to.
In other words, if I do this:
git fetch git-gui master
(which should not follow any tags) when your master is a bit ahead of a new tag in git-gui I do not have, and then immediately afterwards if I do:
Quoted 5 lines
git fetch git-gui
I will not get the new tag followed?
If that is what the patch does, it feels like a regression.
Yeah, that's what it does, and everyone has stated its a regression so its not the right change to make here.
Quoted 10 lines
The intended behaviour was "when tag following is enabled, they are followed if they refer to an object that is reachable from your existing refs".
But this is quite expensive to compute. If a tag points at a blob that is contained inside a commit that is reachable from a ref, we would need to grep "git rev-list --objects -all" output to find it out. I do not offhand recall what the scripted version did, but I would not be surprised if as an approximation we did the auto-following by "does the pointee exist" check.
We just did git cat-file -t. If it passed then we followed the tag. Which means we could just do a has_sha1_file() test and call it a day. If the object is already reachable from our current refs we'll only download the tag; if it isn't really reachable but is dangling in the ODB we'll download possibly a lot of objects.
I was trying to make tag auto-following only work if the tag's target was already completely available and we'd only need to download the tag object itself.
Quoted 1 line
What "random behaviour" are you trying to fix?
Apparently I'm introducing even more random behavior. It may have just been a bug in the past. Or a tag whose referred object wasn't reachable from a ref but I thought it should have been. Obviously my patch series resolves neither.
Signature · 1 line
Shawn.