Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't prompt for a password deploying to file:// URLs.

  • Loading branch information...
commit 64191a3bf212230538a11aae3cfbd043201303fd 1 parent e76422c
@technomancy authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/leiningen/deploy.clj
6 src/leiningen/deploy.clj
@@ -16,8 +16,10 @@
:else message))
(defn add-auth-interactively [[id settings]]
- (if (and (:username settings) (some settings [:password :passphrase
- :private-key-file]))
+ (if (or (and (:username settings) (some settings [:password :passphrase
+ :private-key-file]))
+ ;; TODO: any other cases where we will never need a password?
+ (.startsWith (:url settings) "file://"))
[id settings]
(println "No credentials found for" id)
Please sign in to comment.
Something went wrong with that request. Please try again.