Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the .git/safe directory in bin/setup #76

Merged
merged 1 commit into from
Jul 13, 2015
Merged

Make the .git/safe directory in bin/setup #76

merged 1 commit into from
Jul 13, 2015

Conversation

mehlah
Copy link
Member

@mehlah mehlah commented Jul 11, 2015

Assuming the binstubs for a project are in the local bin/ directory,
we can add the directory to shell $PATH so that rspec can be invoked
without the bin/ prefix:

export PATH="./bin:$PATH"

Doing so on a system that other people have write access to (such as a
shared host) is a security risk:

rbenv/rbenv#309

The .git/safe convention addresses the security problem:

https://twitter.com/tpope/status/165631968996900865

I used to do this manually before, as I have it in my $PATH
https://github.com/mehlah/dotfiles/blob/master/zshenv#L12-13

@kevcha
Copy link
Member

kevcha commented Jul 13, 2015

👍

Assuming the binstubs for a project are in the local `bin/` directory,
we can add the directory to shell `$PATH` so that `rspec` can be invoked
without the `bin/` prefix:

    export PATH="./bin:$PATH"

Doing so on a system that other people have write access to (such as a
shared host) is a security risk:

rbenv/rbenv#309

The `.git/safe` convention addresses the security problem:

https://twitter.com/tpope/status/165631968996900865

I used to do this manually before, as I have it in my `$PATH`
https://github.com/mehlah/dotfiles/blob/master/zshenv#L12-13
@mehlah mehlah merged commit 21e3a5d into master Jul 13, 2015
@mehlah mehlah deleted the git-safe branch July 13, 2015 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants