Permalink
Browse files

Fix bizarre pom indentation.

  • Loading branch information...
1 parent 98afd7e commit efce0f11f3e0facbab8c70ede115a2eb5ef4b78f @technomancy committed Dec 26, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/leiningen/pom.clj
View
@@ -23,8 +23,7 @@
(defn- resolve-git-dir [project]
(let [alternate-git-root (io/file (get-in project [:scm :dir]))
git-dir-file (io/file (or alternate-git-root (:root project)) ".git")]
- (if
- (.isFile git-dir-file)
+ (if (.isFile git-dir-file)
(io/file (second (re-find #"gitdir: (\S+)" (slurp (str git-dir-file)))))
git-dir-file)))
@@ -114,8 +113,7 @@
(defn- write-scm-tag [scm project]
"Write the <scm> tag for pom.xml.
Retains backwards compatibility without an :scm map."
- (if
- (= "auto" scm)
+ (if (= "auto" scm)
(make-git-scm (resolve-git-dir project))
(xml-tags :scm (xmlify (select-keys (:scm project)
[:url :connection

0 comments on commit efce0f1

Please sign in to comment.