Skip to content

Commit

Permalink
Merge pull request #224 from caracal-pipeline/issue-223
Browse files Browse the repository at this point in the history
fixes #223
  • Loading branch information
o-smirnov authored Feb 8, 2024
2 parents 2b3d2c6 + f2a7ed1 commit 326e6d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scabha/configuratt/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import datetime
import fnmatch
import subprocess
from shutil import which
from dataclasses import dataclass

from omegaconf.omegaconf import OmegaConf, DictConfig, ListConfig
Expand Down Expand Up @@ -32,6 +33,7 @@ class ConfigDependencies(object):
def __init__(self):
self.deps = OmegaConf.create()
self.fails = OmegaConf.create()
self._git = which("git")
# self.provides = OmegaConf.create()
# self.requires = OmegaConf.create()

Expand Down Expand Up @@ -107,6 +109,8 @@ def _get_git_info(self, dirname: str):
# check cache first
if dirname in self._git_cache:
return self._git_cache[dirname]
if not self._git:
return None
try:
branches = subprocess.check_output("git -c color.ui=never branch -a -v -v".split(),
cwd=dirname,
Expand Down

0 comments on commit 326e6d8

Please sign in to comment.