Skip to content

Commit 51c01c3

Browse files
committed
remove --prune-tags flag to expand usable git versions
1 parent 00a696c commit 51c01c3

File tree

1 file changed

+2
-1
lines changed
  • src/main/clojure/clojure/tools/gitlibs

1 file changed

+2
-1
lines changed

src/main/clojure/clojure/tools/gitlibs/impl.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@
6161
(defn git-fetch
6262
[^File git-dir]
6363
(let [git-path (.getCanonicalPath git-dir)
64+
;; NOTE: --prune-tags would be desirable here but was added in git 2.17.0
6465
{:keys [exit err] :as ret} (run-git "--git-dir" git-path
65-
"fetch" "--quiet" "--all" "--tags" "--prune" "--prune-tags")]
66+
"fetch" "--quiet" "--all" "--tags" "--prune")]
6667
(when-not (zero? exit)
6768
(throw (ex-info (format "Unable to fetch %s%n%s" git-path err) ret)))))
6869

0 commit comments

Comments
 (0)