[PATCH] replace: fix replacing object with itself

2014-11-13 Thread Manzur Mukhitdinov
When object is replaced with itself git shows unhelpful messages like(git log): "fatal: replace depth too high for object " Prevents user from replacing object with itself(with test for checking this case). Signed-off-by: Manzur Mukhitdinov --- builtin/replace.c | 8 +++

[PATCH] replace: fix replacing object with itself

2014-11-10 Thread Manzur Mukhitdinov
When object is replaced with itself git shows unhelpful messages like(git log): "fatal: replace depth too high for object " Prevents user from replacing object with itself(with test for checking this case). --- builtin/replace.c | 8 +++- t/t6050-replace.sh | 8 2 files changed,

[PATCH] replace: fix replacing object with itself

2014-11-08 Thread Manzur Mukhitdinov
When object is replaced with itself git shows unhelpful messages like(git log): "fatal: replace depth too high for object " Prevents user from replacing object with itself(with test for checking this case). Signed-off-by: Manzur Mukhitdinov --- builtin/replace.c | 3 ++