Merge pull request #1046 from hugoduncan/feature/fix-repo-credentials
Fix repo credentials when no credentials in url
This commit is contained in:
commit
b9a4147cf2
1 changed files with 6 additions and 5 deletions
|
@ -22,11 +22,12 @@
|
|||
|
||||
(defn add-auth-from-url
|
||||
[[id settings]]
|
||||
(if-let [url (utils/build-url id)]
|
||||
(let [user-info (.getUserInfo url)
|
||||
[username password] (and user-info (.split user-info ":"))]
|
||||
[id (assoc settings :username username :password password)])
|
||||
[id settings]))
|
||||
(let [url (utils/build-url id)
|
||||
user-info (and url (.getUserInfo url))
|
||||
[username password] (and user-info (.split user-info ":"))]
|
||||
(if username
|
||||
[id (assoc settings :username username :password password)]
|
||||
[id settings])))
|
||||
|
||||
(defn add-auth-interactively [[id settings]]
|
||||
(if (or (and (:username settings) (some settings [:password :passphrase
|
||||
|
|
Loading…
Reference in a new issue