Giter Site home page Giter Site logo

Comments (7)

hbons avatar hbons commented on May 21, 2024

can you paste the output of 'whereis git' please?

from sparkleshare.

roddi avatar roddi commented on May 21, 2024

randall:~ admin$ whereis git
/usr/bin/git

run on Mac OS X 10.6.6
git was installed with homebrew package manager: https://github.com/mxcl/homebrew

When I set a symbolic link it works:
sudo ln -s /usr/local/bin/git /usr/bin/git

from sparkleshare.

roddi avatar roddi commented on May 21, 2024

randall:~ admin$ which git
/usr/local/bin/git

from sparkleshare.

hbons avatar hbons commented on May 21, 2024

we now use 'whereis git' as the path to git.
ad2c873

from sparkleshare.

Dieterbe avatar Dieterbe commented on May 21, 2024

why not just invoke git without explicit path?
that will rely on $PATH which is the same as what tools such as which and whereis use anyway.

it would however be interesting if, on startup, you first check whether a call like git --version successfully finishes (return code 0) if not, show a warning dialog "Could not find git" and shut down.

from sparkleshare.

hbons avatar hbons commented on May 21, 2024

@Dieterbe: because on the Mac, git isn't in $PATH.

"it would however be interesting if, on startup, you first check whether a call like git --version successfully finishes (return code 0) if not, show a warning dialog "Could not find git" and shut down."

This is done with 'whereis git' too.

from sparkleshare.

Dieterbe avatar Dieterbe commented on May 21, 2024

This is done with 'whereis git' too.

true, that would also work.

but:if on your system you have binaries that you want to run, then you should add their dirname to $PATH. (that's what $PATH is for), it's not up to the app to workaround an incorrectly configured $PATH

from sparkleshare.

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.