This commit is contained in:
Tienson Qin
2020-07-23 11:03:17 +08:00
parent 99f3f24981
commit 1c8774b130

View File

@@ -96,9 +96,10 @@
:fast true})))
(defn add
[repo-url file]
(js/window.git.add (clj->js
{:dir (util/get-repo-dir repo-url)
:filepath file})))
(when js/window.git
(js/window.git.add (clj->js
{:dir (util/get-repo-dir repo-url)
:filepath file}))))
(defn remove-file
[repo-url file]