Git Product home page Git Product logo

Comments (4)

mal avatar mal commented on August 24, 2024

Are you setting HOOKUP_SCHEMA_DIR or --schema-dir to something other than db? If not, that's where hookup.rb#L157 will be looking. Potentially causing this error.

Failing that if you have an example file tree and the command you're running, I'd be happy to dig in.

from hookup.

tpope avatar tpope commented on August 24, 2024

No, it's just looking for db, which doesn't exist. The problem is that the commit in question changed from root relative paths to absolute paths, which is confusing git when the directory doesn't exist.

from hookup.

mal avatar mal commented on August 24, 2024

Rather than the File.expand_path; Pathname.relative_path_from [1] might be a better alternative, or a combination of the two, which will allow us to resolve the path to a root relative path that git can work with?

Alternatively, perhaps a existence check prior to handing the path to git?

from hookup.

mal avatar mal commented on August 24, 2024

Sorry it took so long; crazy couple of weeks. This patch is the simplest way I could think of to get a relative path for the schema_dir which seems to remove those git errors as you suggested.

I've only given it a cursory test so I'd strongly recommend try before you buy! 😉

from hookup.

Related Issues (18)

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.