Creamlover / git-osx-installer

Automatically exported from code.google.com/p/git-osx-installer
0 stars 0 forks source link

git-shell-commands missing #78

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a git user and ground using dscl.
2. make the user shell git-shell 
3. Enjoy the error message.

What is the expected output? What do you see instead?
Dunno What I should be seeing but I do want to set up a git username with a 
restricted shell. 

This is what I am seeing

fatal: Interactive git shell is not enabled.
hint: ~/git-shell-commands should exist and have read and execute access.

What version of the product are you using? On what operating system?
1.7.9.1

Please provide any additional information below.
now afaik there should be a git-shell-command (s) that I need to move to the 
/Users/git folder. a "find / | grep git-shell" only shows the git-shell binary.

Original issue reported on code.google.com by h.a.s...@gmail.com on 24 Feb 2012 at 7:52

GoogleCodeExporter commented 8 years ago
Yeah, so you're complaint is that the installer does not ship the 
git-shell-commands from contrib? That may be a valid. The intended audience for 
this git installer is client usage of git, not for installing on a server, so 
I'm inclined to say that your use case is very... unique.

Am I missing something? Do you really feel like the installer should ship with 
the git-shell-commands contrib folder? You can easily download those, they 
don't need to be compiled.

Original comment by timchar...@gmail.com on 24 Feb 2012 at 8:32

GoogleCodeExporter commented 8 years ago
Well, my case is unique, you are right. Let me motivate it a bit.

I have a mac mini attached to my tv. I use it as a media centre. But at the 
same time I have the need of a git server. OS X and apple hardware has the best 
support for network aware ACPI. So when I ssh in from the internet my mac wakes 
up in 4-5 seconds. I think I will also set this up on my (unbought) new laptop.

It's very environmentally friendly.

If you do ship the git-shell scripts, perhaps you should also ship a setup 
script that sets up a git user and configures git over ssh for this user 
(perhaps a second package ?). This would be golden. I have done some reading, 
and if you want I could paste my notes here. 

Original comment by h.a.s...@gmail.com on 24 Feb 2012 at 9:01

GoogleCodeExporter commented 8 years ago
Cool, I have a similar setup.

However... you host repositories for other people and want to limit the git 
commands they can execute? Do you realize you can host a git repo without 
git-shell?  Git-shell is just for locking down your server.

Original comment by timchar...@gmail.com on 24 Feb 2012 at 9:04

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Yes atm I am using a main account for my repos. However, I don't like leaving 
my keys behind on a work machine. I guess I could password protect them and use 
ssh-agent. I guess you can close the ticket if you want.

It would still be a nice feature :D

Original comment by h.a.s...@gmail.com on 24 Feb 2012 at 9:42

GoogleCodeExporter commented 8 years ago
Hope the start up rules or instructions will be handy so as to encourage more 
people to join.

Original comment by ifkya2...@gmail.com on 10 Mar 2012 at 12:43

GoogleCodeExporter commented 8 years ago
I don't think this makes sense to include in the installer. It's easy enough to 
download these files from the git source yourself, and I think so few people 
use them.

Bump the thread people if you disagree strongly and I will reconsider.

Original comment by timchar...@gmail.com on 13 Dec 2012 at 9:05

GoogleCodeExporter commented 8 years ago
I just had the same issue in git version 1.8.0.2, I had to create 
"git-shell-commands" myself to share my git repo. in Mac (an empty dir. did the 
trick, although including a "help" command would be nice)...

In a perfect world this would at least be documented somewhere, instead of 
fataling on the client.

Original comment by camila...@gmail.com on 25 Dec 2012 at 6:47