Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: cluttered error log #346

Open
adswa opened this issue Oct 14, 2022 · 0 comments
Open

Windows: cluttered error log #346

adswa opened this issue Oct 14, 2022 · 0 comments

Comments

@adswa
Copy link
Member

adswa commented Oct 14, 2022

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant