Do not call 'refresh' when creating a patch (bug #8872)