fix(electron): try to fix #1228

This commit is contained in:
charlie
2021-02-02 14:55:19 +08:00
parent b31193db9d
commit 3beda2c422
12 changed files with 43 additions and 28 deletions

View File

@@ -13,6 +13,7 @@
[cljs-time.core :as t]
[cljs-time.format :as tf]
[frontend.config :as config]
["ignore" :as Ignore]
["/frontend/utils" :as utils]))
(defn get-ref
@@ -61,6 +62,13 @@
(assoc config
:document/mode? (state/sub [:document/mode?])))
(defn ignore-files
[pattern paths]
(-> (Ignore)
(.add pattern)
(.filter (bean/->js paths))
(bean/->clj)))
(comment
(let [repo (state/get-current-repo)]
(p/let [remote-oid (get-remote-ref repo)