chore: remove duplicated get-repo-branch

This commit is contained in:
Tienson Qin
2020-11-11 16:58:18 +08:00
parent 9a4c06b132
commit f28d55a358
2 changed files with 1 additions and 10 deletions

View File

@@ -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))))