Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #223 #224

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading