Work with unknown hash
Signed-off-by:Guillaume Martigny <guillaume.martigny@gmail.com>