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

Question re perl regex in gitreceive #24

Open
lukebond opened this issue May 11, 2014 · 1 comment
Open

Question re perl regex in gitreceive #24

lukebond opened this issue May 11, 2014 · 1 comment

Comments

@lukebond
Copy link

Great job on gitreceive, Jeff.

I'm trying to run it on CoreOS and have trouble with this line: https://github.com/progrium/gitreceive/blob/master/gitreceive#L47 because it uses perl, which isn't installed on CoreOS out of the box.

Of course you needn't support every OS under the sun, but if you could explain what this perl regex is doing then I could find another way of doing it. It's beyond my regex skills!

For now, locally, I've replaced the whole line with simply:

    export RECEIVE_REPO="$(echo $SSH_ORIGINAL_COMMAND | awk '{print $2}' | sed s/\'//g)"

...but I'm sure you have your reasons for writing what you did.

@progrium
Copy link
Owner

I actually didn't add those. But a quick look at blame/history reveals:

37a9003
3058e7a

If you have a way to do this without using perl, I'd love to take it as a PR.

Paperback added a commit to Paperback/gitreceive that referenced this issue Aug 13, 2015
changed perl for sed; now working on CoreOS
fixed issue progrium#24
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

No branches or pull requests

2 participants