summaryrefslogtreecommitdiff
path: root/receive-pack.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-03 17:01:38 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-03 17:01:38 (GMT)
commit944d858969e4e14adefdd8f21fac5c8ab45f83f7 (patch)
tree26f45f4e5544838e40132f579fb86f9ff006688f /receive-pack.c
parent7ec4e60819764128351d526a77859a403c0d4ff4 (diff)
downloadgit-944d858969e4e14adefdd8f21fac5c8ab45f83f7.zip
git-944d858969e4e14adefdd8f21fac5c8ab45f83f7.tar.gz
git-944d858969e4e14adefdd8f21fac5c8ab45f83f7.tar.bz2
Fix up "for_each_ref()" to be more usable, and use it in git-fsck-cache
It needed to take the GIT_DIR information into account, something that the original receive-pack usage just never cared about.
Diffstat (limited to 'receive-pack.c')
-rw-r--r--receive-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/receive-pack.c b/receive-pack.c
index 53d00a5..d05f7d5 100644
--- a/receive-pack.c
+++ b/receive-pack.c
@@ -7,7 +7,7 @@ static const char receive_pack_usage[] = "git-receive-pack <git-dir>";
static const char *unpacker = "git-unpack-objects";
-static int show_ref(const char *path, unsigned char *sha1)
+static int show_ref(const char *path, const unsigned char *sha1)
{
packet_write(1, "%s %s\n", sha1_to_hex(sha1), path);
return 0;