fix: fix push-if-auto-enabled!

This commit is contained in:
Yukun Guo
2020-11-30 17:05:32 +08:00
committed by Tienson Qin
parent 2030943d4d
commit e750eca112
3 changed files with 7 additions and 5 deletions

View File

@@ -844,9 +844,11 @@
(let [shortcuts (or (:shortcuts value) {})]
(storage/set (str repo-url "-shortcuts") shortcuts))))
(defn git-auto-push?
[]
(true? (:git-auto-push (get-config (get-current-repo)))))
(defn get-git-auto-push?
([]
(get-git-auto-push? (get-current-repo)))
([repo]
(true? (:git-auto-push (get-config repo)))))
(defn set-changed-files!
[repo changed-files]