diff options
author | Joan Goyeau <joan@goyeau.com> | 2017-07-24 11:59:33 +0100 |
---|---|---|
committer | Joan Goyeau <joan@goyeau.com> | 2017-08-25 11:41:40 +0100 |
commit | 88e453995d9bb7a9167b4a0028932550c00b49b9 (patch) | |
tree | 4e9ee3baed89408ba7b545b372d11ee01a284bd2 /org.eclipse.jgit.pgm | |
parent | 65b2d0b2d9b2a5fe8df6a82c98a31c366d5887ff (diff) | |
download | jgit-88e453995d9bb7a9167b4a0028932550c00b49b9.tar.gz jgit-88e453995d9bb7a9167b4a0028932550c00b49b9.zip |
Fix default directory set when setDirectory wasn't called.
Bug: 519883
Change-Id: I46716e9626b4c4adc0806a7c8df6914309040b94
Signed-off-by: Joan Goyeau <joan@goyeau.com>
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Clone.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Clone.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Clone.java index ca5205a4e1..a8eb4742db 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Clone.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Clone.java @@ -101,6 +101,9 @@ class Clone extends AbstractFetchCommand implements CloneCommand.Callback { if (localName == null) { try { localName = uri.getHumanishName(); + if (isBare) { + localName = localName + Constants.DOT_GIT_EXT; + } localNameF = new File(SystemReader.getInstance().getProperty( Constants.OS_USER_DIR), localName); } catch (IllegalArgumentException e) { |