dvc get from dvc-branch in not dvc-repo

Created on 26 Nov 2019  路  1Comment  路  Source: iterative/dvc

$ dvc -V
0.70.0+38be14

master branch in https://github.com/dmpetrov/test_repo is NOT a DVC-repo. However, the extracted branch b-test IS DVC-repo and should work:

$ dvc get https://github.com/dmpetrov/test_repo --rev  b-test b-file
ERROR: failed to get 'b-file' from 'https://github.com/dmpetrov/test_repo' - URL 'https://github.com/dmpetrov/test_repo' is not a dvc repository.

This a regression since this command worked before: dvc get聽https://github.com/topusOctopus/mmdetection/聽--rev fasterRCNN_resnet50_support model_weights/faster_rcnn_r50_c4_2x-6e4fdf4f.pth

bug c13-half-a-week p0-critical

Most helpful comment

Reproduction script:

#!/bin/bash

rm -rf repo remote_repo storage git_repo
mkdir repo remote_repo storage git_repo

maindir=$(pwd)
pushd remote_repo
git init >> /dev/null 

echo README >> README.md
git add README.md
git commit -m "add readme"

git checkout -b dvc_branch
dvc init -q
echo data >> data
dvc add -q data
dvc remote add -d str $maindir/storage
git add .dvc/config data.dvc .gitignore
dvc push -q

popd
pushd repo

git init >> /dev/null && dvc init -q

set -x
set -e

dvc get $maindir/remote_repo --rev dvc_branch data

>All comments

Reproduction script:

#!/bin/bash

rm -rf repo remote_repo storage git_repo
mkdir repo remote_repo storage git_repo

maindir=$(pwd)
pushd remote_repo
git init >> /dev/null 

echo README >> README.md
git add README.md
git commit -m "add readme"

git checkout -b dvc_branch
dvc init -q
echo data >> data
dvc add -q data
dvc remote add -d str $maindir/storage
git add .dvc/config data.dvc .gitignore
dvc push -q

popd
pushd repo

git init >> /dev/null && dvc init -q

set -x
set -e

dvc get $maindir/remote_repo --rev dvc_branch data
Was this page helpful?
0 / 5 - 0 ratings

Related issues

dnabanita7 picture dnabanita7  路  3Comments

anotherbugmaster picture anotherbugmaster  路  3Comments

mfrata picture mfrata  路  3Comments

robguinness picture robguinness  路  3Comments

shcheklein picture shcheklein  路  3Comments