Giter VIP home page Giter VIP logo

Comments (7)

c-w avatar c-w commented on May 31, 2024 1

Thanks for the investigation @JudgeGregg. Closing this at it appears to be an upstream dependency's issue. Feel free to reopen if you discover something that ghp-import could be doing better.

from ghp-import.

c-w avatar c-w commented on May 31, 2024

Thanks for the report. What version of git are you on?

from ghp-import.

ratnanil avatar ratnanil commented on May 31, 2024

sorry for the late reply!

$ git --version
git version 2.25.1

from ghp-import.

ratnanil avatar ratnanil commented on May 31, 2024

oh.. I just tested ghp-import on a different repo and it works there. So there seems to be an issue with the specific repo I'm working on. Can you give me a clue on how to debug this?

from ghp-import.

JudgeGregg avatar JudgeGregg commented on May 31, 2024

Hello, I've just had the very same issue. Cleaning up the output directory and regenerating content solved it. I suspect I had some manually edited file which led to git crashing during file-import.

Displaying the name of files being processed in run import with:

        for fn in fnames:
            print("fn: ", fn)
            fpath = os.path.join(path, fn)

showed:

fn:  twisted-development-policy.html                                                                                                                                                                                 
fn:  conch-howto                                                                                                                                                                                                     
                                                                                                                                                                                                                     
hidden                                                                                                                                                                                                               
                                                                                                                                                                                                                     
                                                                                                                                                                                                                     
                                                                                                                                                                                                                     
conch_client.html                                                                                                                                                                                                    
fn:  developer-guides-pair.html                                                                                                                                                                                      
fn:  working-from-twisteds-code-repository.html                                                                                                                                                                      
fn:  twisted-mail-smtp-pop-and-imap.html                                                                                                                                                                             
fn:  scheduling-tasks-for-the-future.html                                                                                                                                                                            
fn:  writing-a-twistd-plugin.html                                                                                                                                                                                    
fatal: Expected 'data n' command, found:                                                                                                                                                                             
fast-import: dumping crash report to .git/fast_import_crash_734242 

And the conch-howto file was indeed a file I had tinkered with. I don't know if that is the precise reason for the crash, but it did work in the end.

Thanks for your work on ghp-import :)

from ghp-import.

c-w avatar c-w commented on May 31, 2024

Thanks for the report @JudgeGregg. @ratnanil does this information help you? Unfortunately I don't have the bandwidth to look into this right now, but a PR would be very much appreciated if you do trace this down!

from ghp-import.

JudgeGregg avatar JudgeGregg commented on May 31, 2024

I think I can reproduce this, and it's probably not ghp-import's fault:
it happens when a filename has a line break in its name:

if you run:

#!/bin/zsh
touch a
cp a $'b\nc'

in your output directory, you will create a file with a line break in its name and git-import will fail.

Now the question is: how does pelican creates such weird filenames. I'm fairly sure it's due to some weird spacing in a rst file, but cannot reproduce it yet.

from ghp-import.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.