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

allow command to be run in git repo subdirectory #105

Merged
merged 2 commits into from
Dec 1, 2017
Merged

Conversation

paulirish
Copy link
Owner

I noticed that the new git-sh-setup requires the command is run from the top of the working tree. :/

image

reading the gh-sh-setup source, the fix seems to be just adding this env variable:
https://github.com/git/git/blob/1a4e40aa5dc16564af879142ba9dfbbb88d1e5ff/git-sh-setup.sh#L368

@derimagia
Copy link
Collaborator

lgtm

Nitpick would be if you could use 'Yes' or 1 instead that's what it looks like it does here: https://github.com/git/git/search?utf8=%E2%9C%93&q=SUBDIRECTORY_OK&type=

They also have "Sometimes" in one or two places, I wonder if that's used for anything

Also you should also be able to put it on the same line as the source if you wanted to to make it clear it's used for the file

@paulirish
Copy link
Owner Author

perfect. done and done.

@paulirish paulirish merged commit 3a423e1 into master Dec 1, 2017
@paulirish paulirish deleted the subdirectoryok branch December 1, 2017 20:18
iblea pushed a commit to iblea/git-open that referenced this pull request Jun 17, 2024
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.

None yet

2 participants