Skip to content

Commit

Permalink
fix: await git-set-username-email!
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk authored and tiensonqin committed Dec 23, 2020
1 parent 5ea4a7a commit b8f0a50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/frontend/handler.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
(nfs/ask-permission-if-local?)

(page-handler/init-commands!)
(if (seq (:repos me))
(when (seq (:repos me))
;; FIXME: handle error
(common-handler/request-app-tokens!
(fn []
Expand Down
4 changes: 2 additions & 2 deletions src/main/frontend/handler/repo.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -590,10 +590,10 @@
".git/config")]
(if (and config-exists?
(db/cloned? repo))
(do
(p/do!
(git-handler/git-set-username-email! repo me)
(pull repo nil))
(do
(p/do!
(clone-and-load-db repo))))))

(periodically-pull-current-repo)
Expand Down

0 comments on commit b8f0a50

Please sign in to comment.