Skip to content

Commit

Permalink
Update dvc/ignore.py
Browse files Browse the repository at this point in the history
abspath

Co-authored-by: Ruslan Kuprieiev <[email protected]>
  • Loading branch information
karajan1001 and efiop authored Jul 26, 2020
1 parent c3e2fbd commit 3eea263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dvc/ignore.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def _outside_repo(self, path):
def check_ignore(self, targets):
check_results = []
for target in targets:
full_target = os.path.join(os.getcwd(), target)
full_target = os.path.abspath(target)
if not self._outside_repo(full_target):
dirname, basename = os.path.split(
os.path.normpath(full_target)
Expand Down

0 comments on commit 3eea263

Please sign in to comment.