-
Notifications
You must be signed in to change notification settings - Fork 12
Updating a datalad-annex Git sibling does not work in adjusted mode #785
Description
On Windows, running datalad update --how merge in a dataset previously cloned from WebDAV reports (ok) but the update is not applied (there are no new commits). I suppose, but can't confirm, that this is related to being on an adjusted branch.
Steps to reproduce (this assumes that the dataset is pushed from LINUX and cloned / updated from WINDOWS, not sure if the pushing OS matters):
LINUX:
(skipping creation steps)
create webdav sibling (git-only because that is the relevant part) and push:
datalad create-sibling-webdav -s sciebo --mode git-only https://fz-juelich.sciebo.de/remote.php/dav/files/m.szczepanik%40fz-juelich.de/2025-07-16/test_win_update
datalad push --to sciebo
WINDOWS:
clone the dataset:
datalad clone "datalad-annex::?type=webdav&encryption=none&exporttree=no&url=https%3A//fz-juelich.sciebo.de/remote.php/dav/files/m.szczepanik%2540fz-juelich.de/2025-07-16/test_win_update"
this retrieves the latest state (plus an adjusted branch), which is currently:
(test-update) C:\Users\mslw9\Documents\test-update\test_win_update>git log --pretty=oneline
fe3517e2608d6a14c67845a05f4703d227971042 (HEAD -> adjusted/main(unlocked)) git-annex adjusted branch
9da02e8e4ea922e9e301dce7af2fff943fd7e64e (origin/main, origin/HEAD, main) Add a readme
f71f97772b2380c00f90ca9fd7d1d1b7228ce9ae [DATALAD] new dataset
LINUX:
(change content, datalad save, datalad push)
this is the state afterwards (f3f... commit is added):
❱ git log --pretty=oneline
f3f19e6fbbdba0af7768090a6430e4a64664d3cd (HEAD -> main, sciebo/main) Add content to README
9da02e8e4ea922e9e301dce7af2fff943fd7e64e Add a readme
f71f97772b2380c00f90ca9fd7d1d1b7228ce9ae [DATALAD] new dataset
WINDOWS:
Update, this seemingly succeeds:
(test-update) C:\Users\mslw9\Documents\test-update\test_win_update>datalad update -s origin --how merge
[INFO] Fetching updates for Dataset("C:\Users\mslw9\Documents\test-update\test_win_update")
update.annex_sync(ok): . (dataset) [Ran git-annex-sync]
update(ok): . (dataset)
action summary:
update (ok: 1)
update.annex_sync (ok: 1)
However, the state is not changed (the f3f... "Add content to README" commit is missing):
(test-update) C:\Users\mslw9\Documents\test-update\test_win_update>git log --pretty=oneline
fe3517e2608d6a14c67845a05f4703d227971042 (HEAD -> adjusted/main(unlocked)) git-annex adjusted branch
9da02e8e4ea922e9e301dce7af2fff943fd7e64e (synced/main, main) Add a readme
f71f97772b2380c00f90ca9fd7d1d1b7228ce9ae [DATALAD] new dataset
Software versions:
Linux: DataLad 1.2.1, datalad-next 1.5.0, cmd:annex: 10.20250630, cmd:git: 2.39.5
Windows: DataLad 1.2.1, datalad-next 1.5.0, cmd:annex: 10.20250606, cmd:git: 2.47.1.windows.2