Closed
Description
reproducer
#!/bin/bash
#
# do not overload so we could use it outside
# export PS4='> '
# set -x
set -eu
umask 022
cd "$(mktemp -d /tmp/dl-XXXXXXX)"
datalad create original
datalad clone --reckless=ephemeral original original-clone
results in
create(ok): /tmp/dl-cw5lgKz/original (dataset)
install(error): /tmp/dl-cw5lgKz/original-clone (dataset) [/tmp/original] [/tmp/original]
which, besides providing no clue to the user or what went wrong, points to the fact that it looks fo /tmp/original
not /tmp/dl-cw5lgKz/original-clone
.
I guess whoever used this feature always used absolute path for the source repo, since then it seems to work:
+ datalad clone --reckless=ephemeral /tmp/dl-VBAcyig/original original-clone
install(ok): /tmp/dl-VBAcyig/original-clone (dataset)