Giter VIP home page Giter VIP logo

Comments (12)

msiemens avatar msiemens commented on May 22, 2024

Interesting. Could you post the result from running git rev-parse --show-toplevel in this directory? And could you try running PyGitUp from Windows' cmd.exe?

from pygitup.

RedX2501 avatar RedX2501 commented on May 22, 2024

Under cmd.exe and powershell.exe it seems to work.

2015-07-15_18-44-57

from pygitup.

msiemens avatar msiemens commented on May 22, 2024

Okay, what's the result of git rev-parse --show-toplevel on Cygwin, CMD and Powershell?

from pygitup.

RedX2501 avatar RedX2501 commented on May 22, 2024

Powershell:

D:/_P/(obscured)/SW/50_Implementation

Cygwin:

/cygdrive/d/_P/(obscured)/SW/50_Implementation

git rev-parse --git-dir yields:

Powershell:

D:/Git_repos/out_of_tree/repo_name.git

Cygwin:

/cygdrive/d/Git_repos/out_of_tree/repo_name.git

from pygitup.

msiemens avatar msiemens commented on May 22, 2024

Just out of curiosity, what happens, if you use /cygdrive/d/Git_repos/out_of_tree/repo_name.git in your .git file instead of D:/Git_repos/out_of_tree/repo_name.git?

from pygitup.

msiemens avatar msiemens commented on May 22, 2024

@RedX2501 Is this still relevant?

from pygitup.

RedX2501 avatar RedX2501 commented on May 22, 2024

Tried it out with 1.4.0 and still the same behaviour.

Traceback (most recent call last):
  File "/usr/bin/git-up", line 9, in <module>
    load_entry_point('git-up==1.4.0', 'console_scripts', 'git-up')()
  File "/usr/lib/python2.7/site-packages/PyGitUp/gitup.py", line 599, in run
    gitup = GitUp()
  File "/usr/lib/python2.7/site-packages/PyGitUp/gitup.py", line 156, in __init__
    odbt=GitCmdObjectDB)
  File "/usr/lib/python2.7/site-packages/git/repo/base.py", line 165, in __init__
    raise InvalidGitRepositoryError(epath)
git.exc.InvalidGitRepositoryError: /cygdrive/d/(...)Implementation

Output with a cygwin path produces a correct git-up error message:
Can't update your repo because it doesn't has any branches with tracking information.

from pygitup.

msiemens avatar msiemens commented on May 22, 2024

Output with a cygwin path produces a correct git-up error message:

You mean when using a cygwin path in the .git file?

from pygitup.

RedX2501 avatar RedX2501 commented on May 22, 2024

Yes

from pygitup.

msiemens avatar msiemens commented on May 22, 2024

Which console did you use? PowerShell or the Cygwin shell? If it's with both, this problem is fixed, isn't it?

from pygitup.

msiemens avatar msiemens commented on May 22, 2024

Just a quick heads up: GitPython v2.1.0 promises to improve Cygwin support (see this PR). It seems to improve path handling with Cygwin so maybe it fixes this problem. Could you update GitPython (pip install -U GitPython) and see if the problem is fixed?

from pygitup.

msiemens avatar msiemens commented on May 22, 2024

Closing due to inactivity, feel free to re-open if this is still an issue.

from pygitup.

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.