We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11eca7f commit 1fd37b7Copy full SHA for 1fd37b7
src/main/clojure/clojure/tools/gitlibs/impl.clj
@@ -174,10 +174,10 @@
174
(throw (IOException. (str "Prefix not unique: " prefix))))))))
175
176
(defn tags
177
- "Fetch, then return all tags in the git dir. "
+ "Fetch, then return all tags in the git dir."
178
[git-dir]
179
(git-fetch (jio/file git-dir))
180
- (let [{:keys [exit out err] :as ret} (run-git "--git-dir" git-dir "tag")]
+ (let [{:keys [exit out err] :as ret} (run-git "--git-dir" git-dir "tag" "--sort=v:refname")]
181
(when-not (zero? exit)
182
(throw (ex-info (format "Unable to get tags %s%n%s" git-dir err) ret)))
183
(remove str/blank? (str/split-lines out))))
0 commit comments