Skip to content
Snippets Groups Projects
Commit 89c7e2b4 authored by Filippo Cremonese's avatar Filippo Cremonese
Browse files

Removed old remote base-url autodetection code

parent ea3183a8
No related branches found
No related tags found
No related merge requests found
......@@ -43,9 +43,6 @@ class CloneAction(Action):
@lru_cache()
def get_remote_head(self):
remotes = [f"{base_url}/{self.repository}" for base_url in self.config.remotes.values()]
local_repo = os.path.join(self.environment["SOURCE_DIR"], ".git")
if os.path.exists(local_repo):
remotes.insert(0, local_repo)
for remote in remotes:
result = self._ls_remote(remote)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment