Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Is it possible to use this library in ubuntu ? #84

Answered by janpecha
vanthuc96 asked this question in Q&A
Discussion options

I'm trying to use this lib, but I got some issues and I guess it depends on the difference of ubuntu and window, so is it possible to use this lib in ubuntu ?

You must be logged in to vote

Hi, yes, it is possible to use this library in Ubuntu. I use Ubuntu too.

What issues you have?

Replies: 1 comment 4 replies

Comment options

Hi, yes, it is possible to use this library in Ubuntu. I use Ubuntu too.

What issues you have?

You must be logged in to vote
4 replies
Comment options

I try to call the function in GitRepository, but I got this issue: detected dubious ownership in repository at '/path/myfolder/' To add an exception for this directory, call: git config --global --add safe.directory /path/myfolder
And I try to add one more function in GitRepository to execute above git command, but I still got this error 'could not lock config file /var/www/.gitconfig: Permission denied'. Do you have any ideas for this? (Thanks for replying my question)

Comment options

Maybe that repository has another owner than your PHP script?

I found some links for this error message:

Comment options

Yes, I have tried it, but as I mention above, I got this error could not lock config file /var/www/.gitconfig: Permission denied. Do we have any way to set permission for that file in php script ?

Comment options

For this, I just allow user that is running my php script can access to that file in terminal, It's resolved. Thanks for your help @janpecha

Answer selected by janpecha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /