question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Repro does not work without .git directory

See original GitHub issue

In a dvc repository:

$ rm -rf .git
$ dvc repro featurize.dvc
Error: Unexpected error: 'Base' object has no attribute 'dir'
Having any troubles? Hit us up at dvc.org/support, we are always happy to help!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ghostcommented, Oct 30, 2018

@dmpetrov, the error was raised by an error during the directory walk, to reproduce it, I needed to modify a little bit my script above:

# Create directory
rm -rf example
mkdir example
cd example

# Init git and dvc
git init
dvc init
+
+# Create inner directory
+mkdir data

# Generate a DVC file
dvc run -o hello 'echo "hello" > hello'

# Remove git directory
rm -rf .git

# Reproduce the output `hello` output
dvc repro hello.dvc

The following PR should fix it: https://github.com/iterative/dvc/pull/1281

2reactions
ghostcommented, Oct 30, 2018

Thanks, @dmpetrov , I’ll check it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git clone without .git directory - Stack Overflow
44. This question is not a dupe of How to do a "git export" (like "svn export"). This question asks on how to...
Read more >
Git error - Fatal: Not a git repository and how to fix it | Datree.io
A Git command needs to be run on a specific repository, so this error typically occurs when a Git command is run in...
Read more >
Getting a Git Repository - Git SCM
You can take a local directory that is currently not under version control, and turn it into a Git repository, or. You can...
Read more >
Set up Git repository locally - Contributor guide | Microsoft Learn
This article provides guidance to create your local Git repository and contribute to documentation, including the forking and cloning ...
Read more >
Solving “Fatal: Not A Git Repository” (Or Any Of The Parent ...
For the second situation, you need to initialize the Git repository in your project folder. To do so, you need to navigate to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found