]> granicus.if.org Git - git/commitdiff
Merge branch 'jc/upload-pack-send-symref' into maint
authorJunio C Hamano <gitster@pobox.com>
Fri, 8 Nov 2013 19:38:00 +0000 (11:38 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Nov 2013 19:38:00 +0000 (11:38 -0800)
One long-standing flaw in the pack transfer protocol used by "git
clone" was that there was no way to tell the other end which branch
"HEAD" points at, and the receiving end needed to guess.  A new
capability has been defined in the pack protocol to convey this
information so that cloning from a repository with more than one
branches pointing at the same commit where the HEAD is at now
reliably sets the initial branch in the resulting repository.

* jc/upload-pack-send-symref:
  t5570: Update for clone-progress-to-stderr branch
  t5570: Update for symref capability
  clone: test the new HEAD detection logic
  connect: annotate refs with their symref information in get_remote_head()
  connect.c: make parse_feature_value() static
  upload-pack: send non-HEAD symbolic refs
  upload-pack: send symbolic ref information as capability
  upload-pack.c: do not pass confusing cb_data to mark_our_ref()
  t5505: fix "set-head --auto with ambiguous HEAD" test

1  2 
cache.h
upload-pack.c

diff --cc cache.h
Simple merge
diff --cc upload-pack.c
Simple merge