mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 08:04:40 +00:00
chore: remove duplicated get-repo-branch
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
(defn get-remote-ref
|
||||
[repo-url]
|
||||
(let [branch (state/get-repo-branch repo-url)]
|
||||
(let [branch (state/get-default-branch repo-url)]
|
||||
;; TODO: what if the remote is not named "origin", check the api from isomorphic-git
|
||||
(git/resolve-ref repo-url (str "refs/remotes/origin/" branch))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user