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

-r switch doesn't switch to read-only repository #1

Open
trysetnull opened this issue Mar 5, 2014 · 0 comments
Open

-r switch doesn't switch to read-only repository #1

trysetnull opened this issue Mar 5, 2014 · 0 comments

Comments

@trysetnull
Copy link

Environment

uname -a
Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux

echo $SHELL
/bin/bash

When I tried to run the cy script I got the following error:

/usr/local/bin/cy: 35: /usr/local/bin/cy: Syntax error: "(" unexpected

I changed the shebang from /bin/sh to /bin/bash and I could run the script.

I tried to use the -r switch but git reported:

 - Using read-only repository.
...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Could not clone remote repository

The -r switch only writes a message to stdout.
The script should switch to use NON_CORE_URL (which is a read-only repository) instead of BASE_URL.

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

1 participant