Skip to content

customise BASE_URL for git-lfs download #22

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

Open
wants to merge 33 commits into
base: master
Choose a base branch
from

Conversation

saketlj
Copy link

@saketlj saketlj commented Feb 28, 2022

This PR is to customise BASE_URL for git-lfs download. Currently we are using this repo and facing 403 error with below command when running from company network.

This change will customise BASE_URL and will use default if not passed explicitly.

curl -Lo git.tar.gz https://github.com/github/git-lfs/releases/download/v1.1.2/git-lfs-linux-amd64-1.1.2.tar.gz

change to
DEFAULTVALUE= "https://github.com/github/git-lfs/releases/download/v1.1.2/git-lfs-linux-amd64-1.1.2.tar.gz"
BASE_URL="${1:-$DEFAULTVALUE}"
curl -Lo git.tar.gz $BASE_URL

Matthew Boedicker and others added 30 commits March 19, 2018 20:35
check emits all pull requests that have been updated since the last
version. This should simplify things and handle forces pushes to pull
requests that are not the latest.

Fixes #1.
First steps toward making shellcheck pass.
Check should error if git ls-remote uri fails
The refs/pull-requests/nn refs remain for some merged and closed pull
requests. They return IllegalPullRequestStateException when the merge is
requested.

The check for NoSuchPullRequestException was checking the file name and
not the contents of the file.

Update Dockerfile apk dependencies.
Fix error on pull requests that are already merged
The refs/pull-requests/nn refs remain for some declined pull requests.
They return IllegalPullRequestStateException when the merge is
requested.
Fix error on pull requests that are declined
Add the possibility to authenticate using Personnal Access Tokens
Switch from gliderlabs/alpine to official alpine for docker base
…erver, default "0" means no sleep.

- Update Dockerfile with new packages so it can build successfully.
Add optional sleep_between_fetches parameter
mmb added 3 commits May 11, 2020 19:05
On puts to a resource that has a private key the bitbucket bash exit
trap was overwriting the exit trap to kill the ssh-agent. This resulted
in the put containers getting stuck because ssh-agent was not killed.

Move all cleanup to a single global cleanup function.
If it's not running killall returns 1 and causes failure exit due to set
-e.
Hide output of pgrep and killall so they don't interfere with the
response.
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.

3 participants