Giter Club home page Giter Club logo

Comments (4)

rcls avatar rcls commented on September 8, 2024

See the FAQ "I did an incremental import and got an error from git-fast-import:" in the readme.
For some reason, the git history I reconstruct from the CVS repo has changed (it is the equivalent of a non-fast-foward git pull or push).

Use the --force flag to override the warning.
You may want sanity check to see what is going on; e.g., do

git diff --stat 0af95a69 d2b66baa

and check that the content of the tag is not getting corrupted.

from crap.

YorkZ avatar YorkZ commented on September 8, 2024

Thank you very much for your quick response. git diff --stat 0af95a69 d2b66baa produces no output for me. So am I safe if I don't re-import the repository using the --force option? If possible, I really don't want to do it again.

from crap.

rcls avatar rcls commented on September 8, 2024

In this case, it should be safe to either ignore the warning, or else to do an (incremental) import with --force.
The warning actually comes from the git-fast-import program (which crap-clone uses to write the git repo).
Reading the docs for git-fast-import, I believe that the consequence of the warning is that the specific ref in question is not updated, but other branches do get updated.
If you ever get this warning for a branch that people are actually commiting to, then you will want to use --force (otherwise you will not get the new commits).
As a matter of interest, how long does the import take for you? Approximately how many files and commits are there?

from crap.

YorkZ avatar YorkZ commented on September 8, 2024

Thanks again for your help.

I can't remember exactly how long it took me to import the CVS projects, probably one or two hours I guess. Not sure exactly how many files, but there are more than 20 projects having development history from 2010. I should say the speed is very good. Great job!

from crap.

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.