Re: [JGIT PATCH 1/2] Ensure that a PackFile instance stays invalid when overwritten

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> @@ -339,6 +351,8 @@ synchronized boolean endWindowCache() {
>  
>  	private void doOpen() throws IOException {
>  		try {
> +			if (invalid)
> +				throw new PackMismatchException("Pack checksum mismatch");
That /may/ be the case. We no longer know why the index failed to open. One way
is to save the reason, the other is not to be so d** sure and use a less specific
message.

-- robin
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]