Use plugin without XCode #358
Replies: 4 comments 5 replies
-
Should be working just fine. I guess it can't find git. Can you try specifying the git binary path manually in the settings? |
Beta Was this translation helpful? Give feedback.
-
Hey! Thanks for the quick answer. You are right, I needed to specify the binary path but I had to update my old release of obsidian to get to the settings options ... I didn't realise I was so far behind. Everything looks good, except I can't login to github. I think I must set up something for my ssh key ... but I'm a little lost with the different options. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
-
HI Vinzent ... that worked thanks very much! There was another issue. I kept getting this message. It's not your plugin's "fault", but it only showed up in your plugin so letting you know about it because other people might have the same error if they haven't already corrected it on their system. I had forgotten how I'd installed git on this machine. But I retraced my steps. My git install came from the notes at the official source at https://git-scm.com/download/mac and then ultimately I used Tim Harper's installer from here https://sourceforge.net/projects/git-osx-installer/ Digging around a bit on StackOverflow I learned that some lines in the standard gitconfig file that's installed at /usr/local/git/etc specify a path using the tilde (ie. ~/.gitcinclude which is the file being referenced in the error message). I believe this would work under Mavricks but in Catalina (and above?) this doesn't work for git that is called by a "subprocess". On StackOverflow the questions was related to Apache running git in a subprocess. So the configuration that shipped with the git installer works when git is run from the command line, but it fails with the error message I was seeing when it's run as a subprocess. Presumably, the Obsidian-Git plugin runs git as a subprocess. The fix was to edit /usr/local/git/etc/gitconfig and change the paths to use $HOME instead of ~. For example, the second line should be excludesfile = $HOME/.gitignore I don't think that's something you can handle in your plugin. But if other people might run into the same issue. Now everything seems to work! Thanks for helping out so quickly. Cheers, |
Beta Was this translation helpful? Give feedback.
-
Yes ... it still works! Thanks. |
Beta Was this translation helpful? Give feedback.
-
Similar to #251, I would like to run this plugin under MacOS with out installing XCode.
I use git on this machine all the time having installed git command line tools already from another source.
I can run git from the command line and get normal results. I can also run applications like GitHub Desktop and SourceTree which use the git comman-line tools as far as I know.
My git command line tools are installed in /usr/local/bin/git
my git --version is 2.15.0
Is there a way to use the github community plugin with Obsidian with git command line tools that weren't installed by Xcode?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions