Browse Source

S3 transport: Fix check for tmpdir

Properties.containsKey() is the correct call here; contains() was testing
if a value is present but the key is what was meant.

Change-Id: Ice72c9f4388583e18cf8aca6e837cc4299fd07fd
tags/v4.1.0.201509280440-r
Shawn Pearce 8 years ago
parent
commit
db0adc1e8c

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportAmazonS3.java View File

@@ -148,7 +148,7 @@ public class TransportAmazonS3 extends HttpTransport implements WalkTransport {
super(local, uri);

Properties props = loadProperties();
if (!props.contains("tmpdir") && local.getDirectory() != null) //$NON-NLS-1$
if (!props.containsKey("tmpdir") && local.getDirectory() != null) //$NON-NLS-1$
props.put("tmpdir", local.getDirectory().getPath()); //$NON-NLS-1$

s3 = new AmazonS3(props);

Loading…
Cancel
Save