From 105cb5f6586ff502c16ef3ce8470ea1853f1a907 Mon Sep 17 00:00:00 2001 From: Yukun Guo Date: Thu, 31 Dec 2020 20:57:58 +0800 Subject: [PATCH] fix: do not push local repo when switching repos --- src/main/frontend/handler/repo.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/frontend/handler/repo.cljs b/src/main/frontend/handler/repo.cljs index ef8b0c75efb..85f6e3ebddf 100644 --- a/src/main/frontend/handler/repo.cljs +++ b/src/main/frontend/handler/repo.cljs @@ -436,7 +436,7 @@ (or (not= status :pushing) custom-commit?)) (-> - (p/let [files (git/add-all (state/get-current-repo)) + (p/let [files (git/add-all repo-url) changed-files? (some? (seq files)) should-commit? (or changed-files? merge-push-no-diff?)