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
stable-4.1
Shawn Pearce 9 years ago
parent
commit
db0adc1e8c
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportAmazonS3.java

2
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportAmazonS3.java

@ -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