Re: [PATCH] push: fix segfault when HEAD points nowhere

2013-01-31 Thread Junio C Hamano
Fraser Tweedale writes: > When reporting the outcome of a push, a segfault occurs if HEAD does > not point somewhere. Check that HEAD points somewhere before trying > to strcmp it. > > Signed-off-by: Fraser Tweedale > --- > transport.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

[PATCH] push: fix segfault when HEAD points nowhere

2013-01-31 Thread Fraser Tweedale
When reporting the outcome of a push, a segfault occurs if HEAD does not point somewhere. Check that HEAD points somewhere before trying to strcmp it. Signed-off-by: Fraser Tweedale --- transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport.c b/transport.c ind