Skip to content

Commit

Permalink
RF: Remove import of GIT_SSH_COMMAND within .consts
Browse files Browse the repository at this point in the history
It was added there for compatibility in 24d4631
when moved deeper in hierarchy.

I think it would be best for us to avoid deeper imports in this file and thus
to avoid possible circular imports observed in the past. Ref:
datalad#7393
  • Loading branch information
yarikoptic committed Sep 6, 2024
1 parent d4ce9ce commit e4f3953
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions datalad/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"""

import os
from os.path import join
import re
from os.path import join

# directory containing prepared metadata of a dataset repository:
DATALAD_DOTDIR = ".datalad"
Expand Down Expand Up @@ -48,9 +48,6 @@
# Format to use for time stamps
TIMESTAMP_FMT = "%Y-%m-%dT%H:%M:%S%z"

# in order to avoid breakage, import runner-related const
from datalad.runner.gitrunner import GIT_SSH_COMMAND

# magic sha is from `git hash-object -t tree /dev/null`, i.e. from nothing
PRE_INIT_COMMIT_SHA = '4b825dc642cb6eb9a060e54bf8d69288fbee4904'

Expand Down

0 comments on commit e4f3953

Please sign in to comment.