Staging
v0.5.1
https://github.com/git/git
Revision 95110d75d972dfdd317829ae7feaf42d4f14ab25 authored by Linus Torvalds on 26 April 2009, 19:29:13 UTC, committed by Junio C Hamano on 26 April 2009, 23:20:25 UTC
While I did a

	make -j64 test > ~/t.out

to check my previous patch (in case some test actually tested 'trustctime'
or something), I noticed this one. Somebody has speeling trouble:

	t4202-log.sh: line 345: test_expect_sucess: command not found

Fixed thus.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent be66a6c
Raw File
Tip revision: 95110d75d972dfdd317829ae7feaf42d4f14ab25 authored by Linus Torvalds on 26 April 2009, 19:29:13 UTC
t4202: fix typo
Tip revision: 95110d7
test-match-trees.c
#include "cache.h"
#include "tree.h"

int main(int ac, char **av)
{
	unsigned char hash1[20], hash2[20], shifted[20];
	struct tree *one, *two;

	if (get_sha1(av[1], hash1))
		die("cannot parse %s as an object name", av[1]);
	if (get_sha1(av[2], hash2))
		die("cannot parse %s as an object name", av[2]);
	one = parse_tree_indirect(hash1);
	if (!one)
		die("not a treeish %s", av[1]);
	two = parse_tree_indirect(hash2);
	if (!two)
		die("not a treeish %s", av[2]);

	shift_tree(one->object.sha1, two->object.sha1, shifted, -1);
	printf("shifted: %s\n", sha1_to_hex(shifted));

	exit(0);
}
back to top