From: Junio C Hamano <junkio@cox.net>
To: Linus Torvalds <torvalds@osdl.org>
Cc: git@vger.kernel.org
Subject: Re: (rework) [PATCH 3/4] Accept commit in some places when tree is needed.
Date: Wed, 20 Apr 2005 19:32:59 -0700 [thread overview]
Message-ID: <7v7jiwhnac.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.58.0504201807320.2344@ppc970.osdl.org> (Linus Torvalds's message of "Wed, 20 Apr 2005 18:09:05 -0700 (PDT)")
>>>>> "LT" == Linus Torvalds <torvalds@osdl.org> writes:
LT> On Wed, 20 Apr 2005, Junio C Hamano wrote:
>>
>> Sorry, but the numbering is wrong this should have been [4/5]
>> not [3/4]. The contents should be fine, though.
LT> Applied and pushed out.
Thanks. I have alreay a bugfix and a half X-<.
----------------------------------------------------------------
[PATCH] Fix read-tree-with-tree-or-commit-sha1 function.
Instead of NULL to signal an error, it was returning a garbage.
Also the compiler complains about a type mismatch between signed
and unsigned character array. Both are my bad. Sorry.
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
--- l/sha1_file.c 2005-04-20 19:00:38.000000000 -0700
+++ k/sha1_file.c 2005-04-20 18:14:34.000000000 -0700
@@ -174,7 +174,7 @@
void *buffer;
unsigned long isize;
int was_commit = 0;
- char tree_sha1[20];
+ unsigned char tree_sha1[20];
buffer = read_sha1_file(sha1, type, &isize);
@@ -197,7 +197,7 @@
*/
if (!buffer || strcmp(type, "tree")) {
free(buffer);
- return;
+ return NULL;
}
*size = isize;
prev parent reply other threads:[~2005-04-21 2:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-21 0:23 (rework) [PATCH 3/4] Accept commit in some places when tree is needed Junio C Hamano
2005-04-21 0:43 ` Junio C Hamano
2005-04-21 1:09 ` Linus Torvalds
2005-04-21 2:32 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7v7jiwhnac.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox