Skip to content

Commit 1f2eed8

Browse files
don't manually clean up git repository
1 parent 9f279b3 commit 1f2eed8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

dvc/repo/get.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def get(url, path, out=None, rev=None):
4646
# and won't work with reflink/hardlink.
4747
dpath = os.path.dirname(os.path.abspath(out))
4848
tmp_dir = os.path.join(dpath, "." + str(shortuuid.uuid()))
49-
raw_git_dir = None
5049
try:
5150
try:
5251
with external_repo(cache_dir=tmp_dir, url=url, rev=rev) as repo:
@@ -87,8 +86,6 @@ def get(url, path, out=None, rev=None):
8786
raise PathMissingError(path, url)
8887
finally:
8988
remove(tmp_dir)
90-
if raw_git_dir:
91-
remove(raw_git_dir)
9289

9390

9491
def _get_cached(repo, output, out):

0 commit comments

Comments
 (0)