Hoping for a github tidy so that I can do git pull on Windows.

29 views
Skip to first unread message

Richard Deane

unread,
Sep 3, 2025, 5:57:23 AM (5 days ago) Sep 3
to Cromemco
I get errors when I do git pull on Windows for cromemco because some have been submitted from Linux with filenames and path which are incompatible on Windows

The errors are:
PS Microsoft.PowerShell.Core\FileSystem::\\TRUENAS\github\pi\m\cromemco> git pull
remote: Enumerating objects: 5468, done.
remote: Counting objects: 100% (1607/1607), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 5468 (delta 1606), reused 1604 (delta 1604), pack-reused 3861 (from 3)
Receiving objects: 100% (5468/5468), 2.06 GiB | 7.54 MiB/s, done.
Resolving deltas: 100% (2702/2702), completed with 1168 local objects.
From https://github.com/cromemcos/m
   2f24cbb2..64a3c46b  main                   -> origin/main
 * [new branch]        file_fixes_for_windows -> origin/file_fixes_for_windows
Updating 2f24cbb2..64a3c46b
error: invalid path 'cromemco/code/disks/HxC blanks/LGSSSDST BASIC.hfe '
error: invalid path 'cromemco/code/disks/HxC/035C0258 test.hfe '
error: invalid path 'cromemco/code/diskutil/MFM emu/Index of :mfm:code.webloc'
error: invalid path 'cromemco/code/diskutil/MFM emu/MFM Hard Disk Reader:Emulator.webloc'
error: invalid path 'cromemco/code/diskutil/dave dunfield/DAVES OLD COMPUTERS - Disk:Software Image Archive.webloc'
error: invalid path 'cromemco/code/operating systems/UNIX/UNIX-U.V2.XXU/year2K date fix/GitHub - jayacotton:unixv2_y2k- A fix for the date command on unix v.2.webloc'
error: invalid path 'cromemco/emulator/cromix-emu/GitHub - dwildie:cromix-emu.webloc'

AI suggests these are the reasons:
When you run git pull and encounter an invalid path error, especially on Windows, it usually means Git is trying to check out a file or folder with a name that violates Windows filesystem rules. Here's how to troubleshoot and recover missing folders:

🛠️ Step-by-Step Fixes for “Invalid Path” Errors

1. Identify the Problematic Path

  • Look at the error message. Common culprits include:
  • Filenames with colons (:), which are illegal on Windows
  • Reserved names like CON, PRN, AUX, etc.
  • Trailing spaces or periods in folder names

When you run git pull and encounter an invalid path error, especially on Windows, it usually means Git is trying to check out a file or folder with a name that violates Windows filesystem rules. Here's how to troubleshoot and recover missing folders:

🛠️ Step-by-Step Fixes for “Invalid Path” Errors

1. Identify the Problematic Path

  • Look at the error message. Common culprits include:
  • Filenames with colons (:), which are illegal on Windows
  • Reserved names like CON, PRN, AUX, etc.
  • Trailing spaces or periods in folder names


I hope these can be resolved.
Richard



cro memcos

unread,
Sep 3, 2025, 1:14:47 PM (5 days ago) Sep 3
to crom...@googlegroups.com
Richard!

Hello there from marcus.  

So I have noted down your valid bother about the windows file names and it is now on the todo list

(Segway:  I have some extreme life challenges right now preventing me doing much, but just to know I wont file your email from my inbox and will post when I have made some adjustments)

thanks m


--
You received this message because you are subscribed to the Google Groups "Cromemco" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cromemco+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cromemco/afa62457-86e5-4d54-ab2a-2e3ec2ab67a3n%40googlegroups.com.

Richard Deane

unread,
Sep 3, 2025, 6:20:54 PM (5 days ago) Sep 3
to cromemco

cro memcos

unread,
Sep 3, 2025, 6:37:19 PM (5 days ago) Sep 3
to crom...@googlegroups.com
Hi Richard.

So apart from everything else I'm in the middle of a large disaster recovery.  So some time to look whilst the restore(s) hopefully proceed sans error.

I confess to being a github noob having trained on SCCS.  Anyways

NONE of the files on the source file tree that you had problems with on my Apple (i.e. UNIX) system contain colons

What I have done is modify the names of the webloc files shortening the names

image.png

Can you give it a git pull and report back

Alternatively switch to Linux / macOS :-)

marcus

PS: As a paranoid android I actually maintain a WORKING and PRODUCTION set of directories on my master machine.   So I make changes in my Working file tree, then push to Production directory which contains the github files.   So if you / anybody modifies the github directly I get into sync issues, so far it seems to work okay, and the reason I maintain the two local filetrees is in case (as has happened before) the uploaded github falls apart and down syncs to the Mac and wipes everything out.





Richard Deane

unread,
Sep 3, 2025, 10:29:43 PM (5 days ago) Sep 3
to cromemco
Hi thanks, I will try it after breakfast on Thursday.

However note that this has a colon in it .
cromemco/code/diskutil/MFM emu/MFM Hard Disk Reader:Emulator.webloc'

It may take me a while to get back to a fail state as I applied a work-around. May need to do a full git clone that takes time.
Cheers
Richard

Jay Cotton

unread,
Sep 3, 2025, 10:42:17 PM (5 days ago) Sep 3
to crom...@googlegroups.com
Hi Marcus:

I had to do a git clone since there were a lot (too many) files that changed.
I suspect I picked up a load of issues on the last git pull.

No problems yet.  Its proceeding as expected.

jc


cro memcos

unread,
Sep 4, 2025, 1:48:26 AM (4 days ago) Sep 4
to crom...@googlegroups.com
Ah okay,

I see the problem now

a)  my working -> production directory rsync is NOT deleting old files so its creating extra copies of crap, need to fix

b) The issue with the filenames is that under macOS (files originally  copied from Windows Server) there are / forward slashes in some of the file names.
macOS seems to allow that  (bit of a surprise, you learn something every day)  and when git uploads it , it replaces the / forward slash with a colon


So I will clean up the above 2   defects and tell you when done.

c) the original rsync working -> production created hundreds if not thousands of ._ files  which I really hope did not ascend to github cloud, if they did they will remove after I fixed a and b

regards  marcus


cro memcos

unread,
Sep 4, 2025, 8:59:37 AM (4 days ago) Sep 4
to crom...@googlegroups.com
Dear Richard and all .

My disaster recovery   (I lost over 2 million files, pretty careless) is still ongoing.   Not slept well.

Meanwhile in github land

image.png

I ran the source to target rsync locally to flush out what should have been deleted files on target

I ran a command line

find . -name "*/*" -print

and it runs clean

I re pushed my production tree to github.

Please retest your gitub pull.

thanks marcus

Richard Deane

unread,
Sep 4, 2025, 12:47:20 PM (4 days ago) Sep 4
to cromemco
Thank you. I did a new git clone earlier today which received a few errors, as expected if your fixes weren't in, then I did a git pull a few minutes which has pulled the remainder and shows no errors.

Richard 


Jay Cotton

unread,
Sep 4, 2025, 2:23:29 PM (4 days ago) Sep 4
to Cromemco
Here is a clone log.  Looks like its working for linux

ubuntu@ubuntu-ATOPNUC-MA90:/media/ubuntu/One Touch1/projects$ git clone https://github.com/cromemcos/m.git
Cloning into 'm'...
Username for 'https://github.com': jacotton
Password for 'https://jaco...@github.com':
remote: Enumerating objects: 30570, done.
remote: Counting objects: 100% (218/218), done.
remote: Compressing objects: 100% (135/135), done.
remote: Total 30570 (delta 60), reused 131 (delta 56), pack-reused 30352 (from 3)
Receiving objects: 100% (30570/30570), 51.38 GiB | 4.74 MiB/s, done.
Resolving deltas: 100% (11529/11529), done.
Updating files: 100% (64055/64055), done.
ubuntu@ubuntu-ATOPNUC-MA90:/media/ubuntu/One Touch1/projects$


Reply all
Reply to author
Forward
0 new messages