szabgab / codeandtalk.com

Indexing conferences, videos, podcasts, people
https://codeandtalk.com
Apache License 2.0
80 stars 136 forks source link

Checkout issue due to large filename #170

Closed adamculp closed 7 years ago

adamculp commented 7 years ago

When cloning the repo I receive the following error:

error: unable to create file data/videos/rubyconf-taiwan-2015/rubyconf-day1-r2-04-jian-wei-hang-gulp-on-rails-return-front-end-back-to-front-end-developers-huan-gei-qian-duan-gong-cheng-shi-yi-ge-tian-kong.json (File name too long) fatal: unable to checkout working tree warning: Clone succeeded, but checkout failed.

szabgab commented 7 years ago

Thanks for reporting. What OS ? Do you use git on the command line? Which version?

adamculp commented 7 years ago

I am on Ubuntu 16.04 (my laptop). Tried using JetBrains IDE, and then also tried via CLI. (Git version 2.7.4) Both fail with the same message.

Not able to get a full clone.

szabgab commented 7 years ago

Strange. It works for me on both OSX and Linux. Just checked on an Ubuntu 16.04. What kind of filesystem do you use?

This is what I just tried:

$ lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME   FSTYPE SIZE MOUNTPOINT LABEL
vda            20G
└─vda1 ext4    20G /          cloudimg-rootfs

git version 2.7.4

Could you paste the git command you are using on the command line?

adamculp commented 7 years ago

Yes, very strange. Wonder if it is causing issue with the Ubuntu encrypted home directory. (would be a first)

Filesystem:

$ lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME                    FSTYPE        SIZE MOUNTPOINT LABEL
sda                                 931.5G            
├─sda1                  ext2          487M /boot      
├─sda2                                  1K            
└─sda5                  crypto_LUKS   931G            
  └─sda5_crypt          LVM2_member   931G            
    ├─ubuntu--vg-root   ext4        915.1G /          
    └─ubuntu--vg-swap_1 swap         15.9G            
      └─cryptswap1      swap         15.9G [SWAP]     
sr0                                  1024M

Git command:

$ git clone https://github.com/szabgab/codeandtalk.com.git codeandtalk
adamculp commented 7 years ago

Verified: Was able to do the clone outside of the encrypted home directory.

szabgab commented 7 years ago

Great. So does this work for you for now?

In any case I'll shorten the file names. These were automatically generated by the code that fetches the playlists from YouTube.

adamculp commented 7 years ago

Should be OK for now. I just wanted to add a couple events, speaker, and talks. Since I didn't see a form I assumed a PR was the way to add those.

szabgab commented 7 years ago

That would be great. I should probably make that more obvious on the web site.

szabgab commented 7 years ago

BTW This, or something related might be the issue: http://unix.stackexchange.com/questions/32795/what-is-the-maximum-allowed-filename-and-folder-size-with-ecryptfs The problematic filename is 149 bytes long and the recommended limit for this encrypted filesystem is 140 characters.