OpenNeuroOrg / openneuro

A free and open platform for analyzing and sharing neuroimaging data
https://openneuro.org/
MIT License
114 stars 40 forks source link

Git push leaves working directory dirty, preventing further pushes. #2925

Open Shotgunosine opened 1 year ago

Shotgunosine commented 1 year ago

What went wrong?

I'm trying to use git to upload derivatives to ds004787. When I was uploading yesterday I ran into a "Working directory has unstaged changes" error on my second git push. @effigies rolled back a few commits and I was able to push those changes. I just committed a bunch more files locally and tried to push, but I'm again getting the "Working directory has unstaged changes" error. Can you take a look and see what the unstaged changes are? Is there anything I can do on my side to prevent triggering the creation of unstaged changes?

Expected behavior

I expect to be able to use git to push changes and to then use git annex to upload the annexed files.

How to reproduce

  1. clone ds004787
  2. make some changes and commit them
  3. try to push them to open neuro.

Desktop

Phone

No response

Additional information

No response

nellh commented 1 year ago

@Shotgunosine I'm still looking into the cause of this but could you try pushing again? I've reset the empty diff unstaged changes for your dataset after saving a backup for debugging this.

Shotgunosine commented 1 year ago

@effigies here's the file listing you asked for: git_files.txt

Shotgunosine commented 1 year ago

@nellh, Sorry but my local git repo for this seems to be broken. I'd like to try just uploading a new dataset but I'm getting an error:

#
# Fatal error in , line 0
# Fatal JavaScript invalid size error 195633109 (see crbug.com/1201626)
#
#
#
#FailureMessage Object: 0x7fffa7a57630
 1: 0x14a4553165d7  [/gpfs/gsfs9/users/nielsond/python/envs/openneuro/bin/../lib/libnode.so.115]
 2: 0x14a455fd36ef V8_Fatal(char const*, ...) [/gpfs/gsfs9/users/nielsond/python/envs/openneuro/bin/../lib/libnode.so.115]
 3: 0x14a4558cfc6b  [/gpfs/gsfs9/users/nielsond/python/envs/openneuro/bin/../lib/libnode.so.115]
 4: 0x14a455cd5cc4 v8::internal::Runtime_StringToArray(int, unsigned long*, v8::internal::Isolate*) [/gpfs/gsfs9/users/nielsond/python/envs/openneuro/bin/../lib/libnode.so.115]
 5: 0x14a45555b2b6  [/gpfs/gsfs9/users/nielsond/python/envs/openneuro/bin/../lib/libnode.so.115]
Illegal instruction (core dumped)
Shotgunosine commented 1 year ago

Oh actually, maybe the repo's not dead after all. Here's the git status on the local main that @effigies asked for. git_status_main.txt