Dvc: remote default with no argument removes default

Created on 19 Nov 2019  路  3Comments  路  Source: iterative/dvc

Running dvc remote default with no argument sets default remote to None.
According to documentation this should show the default remote though.

Setting default remote:

>>dvc remote default my_remote
>>git diff
... 
+[core]
+remote = my_remote
...

This should query the default, but sets default to None:

>>dvc remote default
>>git diff
...
+[core]
+remote = None

DVC version: 0.66.11
OS: Ubuntu 18.04.2 LTS
Method: From repository

bug p1-important

Most helpful comment

Hi @efiop, thanks for developing DVC!

I could give it a try if you haven't already!

All 3 comments

Hi @kaiogu !

This is definitely a bug on our side. Need to modify https://github.com/iterative/dvc/blob/0.69.0/dvc/command/remote.py#L51 to just logger.info() the existing value.

Thanks for the feedback!

Hi @efiop, thanks for developing DVC!

I could give it a try if you haven't already!

@kaiogu Sure, please go ahead! Let us know if you have any questions, we will be happy to help with it!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tc-ying picture tc-ying  路  3Comments

prihoda picture prihoda  路  3Comments

shcheklein picture shcheklein  路  3Comments

nik123 picture nik123  路  3Comments

TezRomacH picture TezRomacH  路  3Comments