I triggered a failure on Windows where the local git-annex branch was behind its remote counter part during a push. The error log contains quite a bit of unhelpful clutter:
-> Failed: Dataset('C:\\Users\\adina\\Desktop\\studyforrest').push(to='gin', data='auto', path=[WindowsPath('C:/Users/adina/Desktop/studyforrest/code/overlay_gaze_on_video')])
Traceback (most recent call last):
File "C:\Users\adina\repos\datalad-gooey\datalad_gooey\dataladcmd_exec.py", line 164, in _cmdexec_thread
for res in cmd(**cmdkwargs):
File "C:\Users\adina\env\gooyey\lib\site-packages\datalad\interface\utils.py", line 357, in generator_func
for r in _process_results(
File "C:\Users\adina\env\gooyey\lib\site-packages\datalad\interface\utils.py", line 544, in _process_results
for res in results:
File "C:\Users\adina\env\gooyey\lib\site-packages\datalad\core\distributed\push.py", line 262, in __call__
yield from _push(
File "C:\Users\adina\env\gooyey\lib\site-packages\datalad_next\patches\push_optimize.py", line 179, in _push
yield from mod_push._push_refspecs(
File "C:\Users\adina\env\gooyey\lib\site-packages\datalad\core\distributed\push.py", line 726, in _push_refspecs
push_res = repo.push(
File "C:\Users\adina\env\gooyey\lib\site-packages\datalad\support\gitrepo.py", line 1983, in push
push_res.extend(
File "C:\Users\adina\env\gooyey\lib\site-packages\datalad\support\gitrepo.py", line 2000, in push_
yield from self._fetch_push_helper(
File "C:\Users\adina\env\gooyey\lib\site-packages\datalad\support\gitrepo.py", line 2098, in _fetch_push_helper
out = self._git_runner.run(
File "C:\Users\adina\env\gooyey\lib\site-packages\datalad\runner\runner.py", line 211, in run
raise CommandError(
datalad.runner.exception.CommandError: CommandError: '"git" "-c" "diff.ignoreSubmodules=none" "push" "--progress" "--porcelain" "gin" "master" "git-annex:git-annex"' failed with exitcode 1 under C:\Users\adina\Desktop\studyforrest [out: 'To gin.g-node.org:/adswa/data-backup.git
* refs/heads/master:refs/heads/master [new branch]
! refs/heads/git-annex:refs/heads/git-annex [rejected] (non-fast-forward)
Done'] [err: 'Delta compression using up to 16 threads
Total 54789 (delta 4316), reused 54782 (delta 4313), pack-reused 0
remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: remote: error: failed to push some refs to 'gin.g-node.org:/adswa/data-backup.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.']
the error looks like this in the command line:
(gooyey) C:\Users\adina\Desktop\studyforrest>datalad push --to gin --data auto code\overlay_gaze_on_video
publish(error): . (dataset) [refs/heads/git-annex->gin:refs/heads/git-annex [rejected] (non-fast-forward)]
action summary:
publish (error: 1, notneeded: 1)
Hints:
1: Updates were rejected because a pushed branch tip is behind its remote counterpart. Check out this branch and integrate the remote changes (e.g. 'git pull ...') before pushing again. See the 'Note about fast-forwards' in 'git push --help' for details.
I triggered a failure on Windows where the local git-annex branch was behind its remote counter part during a push. The error log contains quite a bit of unhelpful clutter:
the error looks like this in the command line: