Skip to content

dvc get: git auth with deploy token raises "HTTP Git authentication is not supported: 'origin'" #7689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tyomj opened this issue May 3, 2022 · 1 comment

Comments

@tyomj
Copy link

tyomj commented May 3, 2022

Bug Report

Description

dvc get with a provided URL that contains deploy token fails with
HTTP Git authentication is not supported: 'origin'
since 2.10.2.
It happens after the recent update in clone function which finally resulted in the error here.
One possible way to tackle the problem I was thinking of is to prevent usage of fetch_all_exps for remotes with HTTP, but I'm not sure if it's good hack tbh.

Reproduce

dvc get https://gitlab+deploy-token:[email protected]/group/repo.git some_file.txt

Expected

some_file.txt is successful downloaded from the specified remote repo.

Environment information

Output of dvc doctor:

$ dvc doctor

DVC version: 2.10.2 (pip)
---------------------------------
Platform: Python 3.8.8 on Linux-5.13.0-39-generic-x86_64-with-glibc2.10
Supports:
        hdfs (fsspec = 2022.3.0, pyarrow = 6.0.1),
        webhdfs (fsspec = 2022.3.0),
        http (aiohttp = 3.8.1, aiohttp-retry = 2.4.6),
        https (aiohttp = 3.8.1, aiohttp-retry = 2.4.6),
        s3 (s3fs = 2022.3.0, boto3 = 1.21.21)

Additional Information (if any):

@pmrowla
Copy link
Contributor

pmrowla commented May 4, 2022

Closing as duplicate of #7670

@pmrowla pmrowla closed this as completed May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants