Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
BF: Don't use absolute paths in commit message of spec4anything
Browse files Browse the repository at this point in the history
  • Loading branch information
bpoldrack committed Aug 30, 2018
1 parent 28ebabf commit 8955eb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions datalad_hirni/commands/spec4anything.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,9 @@ def __call__(path, dataset=None, spec_file=None, properties=None,
from os import linesep
message = "[HIRNI] Add specification {n_snippets} for: {paths}".format(
n_snippets=single_or_plural("snippet", "snippets", len(paths)),
paths=linesep.join(" - " + p['path'] for p in paths)
if len(paths) > 1 else paths[0]['path'])
paths=linesep.join(" - " + op.relpath(p['path'], dataset.path)
for p in paths)
if len(paths) > 1 else op.relpath(paths[0]['path'], dataset.path))
for r in dataset.add(
updated_files,
to_git=True,
Expand Down

0 comments on commit 8955eb9

Please sign in to comment.