Code

Make "for_each_ref()" always use the "canonical" refname.
authorLinus Torvalds <torvalds@g5.osdl.org>
Fri, 8 Jul 2005 20:56:05 +0000 (13:56 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 8 Jul 2005 20:56:05 +0000 (13:56 -0700)
commit99a0a6e09f2c9737d1155f25e8cd4c3bc512a8ea
tree4314a022fce7bee0e8e849c9e0271d52ddd1a07d
parentb10d0ec7321a6bd6cc1a62f44fee305a0d184dca
Make "for_each_ref()" always use the "canonical" refname.

It always uses a git-relative pathname, ie "refs/heads/master" instead of
".git/refs/heads/master" or whatever your GIT_DIR might be.

This way when we send refs back-and-forth between repositories, there's
never any question about GIT_DIR on either side.
refs.c