mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-07 15:28:28 +01:00
scmrepo: update to 0.0.13
This commit is contained in:
committed by
Peter Rowlands (변기호)
parent
2e21be992d
commit
ab54b5bdfc
@@ -2,6 +2,8 @@ import logging
|
||||
import os
|
||||
from typing import List
|
||||
|
||||
from scmrepo.exceptions import SCMError
|
||||
|
||||
from dvc.fs.repo import RepoFileSystem
|
||||
from dvc.output import Output
|
||||
from dvc.repo import locked
|
||||
@@ -121,8 +123,8 @@ def show(
|
||||
# Hide workspace metrics if they are the same as in the active branch
|
||||
try:
|
||||
active_branch = repo.scm.active_branch()
|
||||
except (TypeError, NoSCMError):
|
||||
# TypeError - detached head
|
||||
except (SCMError, NoSCMError):
|
||||
# SCMError - detached head
|
||||
# NoSCMError - no repo case
|
||||
pass
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user