Code Monkey home page Code Monkey logo

Comments (5)

kennethreitz avatar kennethreitz commented on July 30, 2024

Hmm, that shouldn't be the case. Interesting.

from legit.

kennethreitz avatar kennethreitz commented on July 30, 2024

Fixed!

from legit.

sorin-ionescu avatar sorin-ionescu commented on July 30, 2024

I saw you merged that. It still doesn't work for me.

from legit.

kennethreitz avatar kennethreitz commented on July 30, 2024

I haven't pushed a new release yet.

from legit.

blueyed avatar blueyed commented on July 30, 2024

@kennethreitz
Re-open, please.

What commit/change should have fixed this?
Because it's not fixed for me, using the develop branch.

The problem currently appears to be that git.Repo() does not handle submodules via .git files, but tests for .git to be a dir.

I could imagine a workaround being to resolve the workdir in legit before calling Repo():

  1. use git rev-parse --git-dir (instead of --show-toplevel) to get the submodule's/repo's git dir
  2. set working_dir for the repo instance manually, based on finding ".git" (file and dir) in the current dir or above.

That is what the fix for GitPython does also: (gitpython-developers/GitPython#89):

+          if is_git_dir(gitpath):
+            self.git_dir = gitpath
+            self._working_tree_dir = curpath

from legit.

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.