Skip to content

Commit f8594e7

Browse files
committed
Use commit hash rather than tag to sync changes to upstream Vim repo
1 parent 3bfabef commit f8594e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clj/src/vim_clojure_static/generate.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,9 @@
458458
(defn- update-vim!
459459
"Update Vim repository runtime files in dst/runtime"
460460
[src dst]
461-
(let [current-tag (string/trim-newline (:out (sh "git" "tag" "--points-at" "HEAD")))
462-
current-date (.format (SimpleDateFormat. "dd MMMM YYYY") (Date.))]
463-
(assert (seq current-tag) "Git HEAD is not tagged!")
461+
(let [current-tag (string/trim-newline (:out (sh "git" "rev-parse" "HEAD")))
462+
current-date (.format (SimpleDateFormat. "YYYY-MM-dd") (Date.))]
463+
(assert (seq current-tag) "Git HEAD doesn't appear to have a commit hash.")
464464
(update-doc! #"CLOJURE\t*\*ft-clojure-indent\*"
465465
(fjoin src "doc/clojure.txt")
466466
(fjoin dst "runtime/doc/indent.txt"))

0 commit comments

Comments
 (0)