Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Absolute paths #8

wants to merge 1 commit into from

2 participants


For lein-sub compatibility.

@ato ato closed this pull request from a commit
@ato Search for pom.xml in jar's dirname, not only target. fix #8
Keeps us backwards compatible with Leiningen 1.7.0.
@ato ato closed this in ed51bae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 5, 2011
  1. using absolute paths instead of relative

    myfreeweb authored
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/leiningen/push.clj
5 src/leiningen/push.clj
@@ -72,11 +72,12 @@
(JSch/setLogger (proxy [Logger] []
(isEnabled [level] true)
(log [level message] (println level message)))))
- (let [jarfile (get-default-jar-name project)]
+ (let [jarfile (get-default-jar-name project)
+ fullpath #(str (:root project) "/" %)]
(pom project)
(jar project)
- (scp-send repo "pom.xml" jarfile)
+ (scp-send repo (fullpath "pom.xml") (fullpath jarfile))
(catch JSchException e
(.printStackTrace e)
(when (= (.getMessage e) "Auth fail")
Something went wrong with that request. Please try again.