Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
git aliases [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
danvari
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2008
Posts: 131

PostPosted: Sat Apr 07, 2012 12:55 pm    Post subject: git aliases [SOLVED] Reply with quote

Hello :)!

I recently switched back from Archlinux to Gentoo and now i have some problems regarding git aliases. My gitconfig does look like this:

Code:

...
[alias]
   st = status -s
   co = checkout
   br = branch
   ci = commit
...


But when i use an alias i get the following error message (same config, does not happen on Arch):

Quote:

$ git st
fatal: cannot exec 'git-st': Permission denied


My USE-flags for git:

Quote:
bash-completion blksha1 curl cvs iconv perl threads tk webdav -cgi -doc -emacs -gtk -ppcsha1 -subversion -xinetd


Maybe my USE-flags are wrong, I dont know :-/.

EDIT SOLUTION:
______________
see http://stackoverflow.com/questions/7997700/git-aliases-causing-permission-denied-error
one has to add permissions to all (?) binary directories, specifically gentoo:

sudo chmod +x /usr/games/bin/

and then its working


Last edited by danvari on Mon Apr 09, 2012 9:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
needles
n00b
n00b


Joined: 27 Feb 2003
Posts: 31
Location: Downingtown, Pennsylvania - USA

PostPosted: Sat Apr 07, 2012 5:50 pm    Post subject: Reply with quote

I'm running in to this issue too. I have three Gentoo machines, but only one of them, my netbook, exhibits this issue.

I think it has something to do with bash-completion. My machine exhibits this issue as well:

When I try `perldoc<tab><tab>`, I see this output:
Code:
-bash: /etc/bash_completion.d/helpers/perl: No such file or directory


If I then press <tab> again, I see the above message again, with an additional bit:
Code:
-bash: /etc/bash_completion.d/helpers/perl: No such file or directory

Display all 233 possibilities? (y or n)


If I then press 'y', I'll see the files in the current directory, followed by all of the standard perldoc files.

My other two Gentoo installs are a good bit older, and are 64-bit. The one that is acting up in this way is a newer install and is x86.

I've dug around a bit, and I'm pretty sure my environment is sane, but something really does seem amiss here.

Any ideas, anyone?
Back to top
View user's profile Send private message
danvari
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2008
Posts: 131

PostPosted: Mon Apr 09, 2012 9:04 pm    Post subject: Reply with quote

i have added a solution for this issue, dont know if that helps you too.
Back to top
View user's profile Send private message
needles
n00b
n00b


Joined: 27 Feb 2003
Posts: 31
Location: Downingtown, Pennsylvania - USA

PostPosted: Wed Apr 11, 2012 2:55 pm    Post subject: Reply with quote

danvari wrote:
i have added a solution for this issue, dont know if that helps you too.


Danvari,

It did, so thanks to you for that. I use StackOverflow and ServerFault a bit, but have always come here for my Gentoo-specific issues. I may need to reconsider that!

One interesting thing I discovered was that on my two functioning machines my user was in the 'games' group, so no worries. I don't have myself in it on the netbook, where I was having the issue.

I felt the more correct fix was to add my user to the games group, and then play a little worm for my trouble. :)

I thought this and the perl completion issue was related as they were both only present on one of my Gentoo machines, but that one persists so I'll have to look elsewhere for an answer to that.

Thanks so much for your help! Nice job!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum