kubernetes-engine-samples icon indicating copy to clipboard operation
kubernetes-engine-samples copied to clipboard

Space in the File name makes git clone fail

Open ichandan16 opened this issue 7 months ago • 1 comments

Hi, Git clone fails due to a space in end of this file:

https://github.com/GoogleCloudPlatform/kubernetes-engine-samples/blob/main/.github/workflows/quickstarts-monolith-to-microservices-ci.yml%20

$ git clone https://github.com/GoogleCloudPlatform/kubernetes-engine-samples.git
Cloning into 'kubernetes-engine-samples'...
remote: Enumerating objects: 13646, done.
remote: Counting objects: 100% (884/884), done.
remote: Compressing objects: 100% (208/208), done.
remote: Total 13646 (delta 762), reused 676 (delta 676), pack-reused 12762 (from 4)
Receiving objects: 100% (13646/13646), 11.91 MiB | 11.85 MiB/s, done.
Resolving deltas: 100% (8541/8541), done.
error: invalid path '.github/workflows/quickstarts-monolith-to-microservices-ci.yml '
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

quickstarts-monolith-to-microservices-ci.yml

ichandan16 avatar Jun 11 '25 09:06 ichandan16

Thanks for raising this issue; I suspect that depending on the operating system folks might not experience this and why we didn't catch it. Thank you!

Cloning into 'kubernetes-engine-samples'...
remote: Enumerating objects: 13646, done.
remote: Counting objects: 100% (1134/1134), done.
remote: Compressing objects: 100% (256/256), done.
remote: Total 13646 (delta 981), reused 878 (delta 878), pack-reused 12512 (from 4)
Receiving objects: 100% (13646/13646), 11.90 MiB | 3.04 MiB/s, done.
Resolving deltas: 100% (8580/8580), done.

iennae avatar Jun 11 '25 15:06 iennae