File tree Expand file tree Collapse file tree
src/main/clojure/clojure/tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Changelog
22===========
33
4+ * next
5+ * Fix NPE on tags if repo has no tags
46* 2.6.212 on Dec 30, 2025
57 * Bump parent pom to latest
68* 2.6.206 on Dec 5, 2024
Original file line number Diff line number Diff line change 8585 (->> shas (sort (partial impl/commit-comparator git-dir)) first))))))
8686
8787(defn tags
88- " Fetches, then returns coll of tags in git url"
88+ " Fetches, then returns coll of tags in git url, nil if none "
8989 [url]
9090 (impl/tags (impl/ensure-git-dir url)))
9191
114114
115115 ; ; big output
116116 (tags " https://github.com/confluentinc/kafka-streams-examples.git" )
117+
118+ ; ; no tags
119+ (tags " https://github.com/clojure/clojure-site.git" )
120+ (clojure.repl/pst *e)
117121 )
Original file line number Diff line number Diff line change 206206 (let [{:keys [exit out err] :as ret} (run-git " --git-dir" git-dir " tag" " --sort=v:refname" )]
207207 (when-not (zero? exit)
208208 (throw (ex-info (format " Unable to get tags %s%n%s" git-dir err) ret)))
209- (remove str/blank? (str/split-lines out))))
209+ (when out
210+ (remove str/blank? (str/split-lines out)))))
You can’t perform that action at this time.
0 commit comments