Skip to content
Open
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
7 changes: 6 additions & 1 deletion src/packages/buskill/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1992,9 +1992,14 @@ def upgrade(self):
# the only reason the SOURCE_DATE_EPOCH would be missing is if we're executing
# the python files directly (eg we're testing) and we can just get it from git
if BUSKILL_VERSION['SOURCE_DATE_EPOCH'] == '':
# derive the repo root dynamically: buskill/__init__.py lives at
# <repo>/src/packages/buskill/__init__.py, so go up 4 levels
repo_root = os.path.abspath(
os.path.join( os.path.dirname(__file__), '..', '..', '..' )
)
result = subprocess.run( [
'git',
'--git-dir=/home/user/sandbox/buskill-app/.git',
'-C', repo_root,
'log',
'-1',
'--pretty=%ct'
Expand Down
Loading