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

[Linux] Rename github/hub repo #8354

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions images/linux/scripts/installers/git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
################################################################################

# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh
# shellcheck source=../helpers/install.sh
source "$HELPER_SCRIPTS/install.sh"

GIT_REPO="ppa:git-core/ppa"
GIT_LFS_REPO="https://packagecloud.io/install/repositories/github/git-lfs"
Expand Down Expand Up @@ -33,13 +34,13 @@ add-apt-repository --remove $GIT_REPO
rm /etc/apt/sources.list.d/github_git-lfs.list

# Document apt source repo's
echo "git-core $GIT_REPO" >> $HELPER_SCRIPTS/apt-sources.txt
echo "git-lfs $GIT_LFS_REPO" >> $HELPER_SCRIPTS/apt-sources.txt
echo "git-core $GIT_REPO" >> "$HELPER_SCRIPTS/apt-sources.txt"
echo "git-lfs $GIT_LFS_REPO" >> "$HELPER_SCRIPTS/apt-sources.txt"

#Install hub
tmp_hub="/tmp/hub"
mkdir -p "$tmp_hub"
downloadUrl=$(get_github_package_download_url "github/hub" "contains(\"hub-linux-amd64\")")
downloadUrl=$(get_github_package_download_url "mislav/hub" "contains(\"hub-linux-amd64\")")
download_with_retries "$downloadUrl" "$tmp_hub"
tar xzf "$tmp_hub"/hub-linux-amd64-*.tgz --strip-components 1 -C "$tmp_hub"
mv "$tmp_hub"/bin/hub /usr/local/bin
Expand All @@ -48,4 +49,4 @@ mv "$tmp_hub"/bin/hub /usr/local/bin
ssh-keyscan -t rsa,ecdsa,ed25519 github.com >> /etc/ssh/ssh_known_hosts
ssh-keyscan -t rsa ssh.dev.azure.com >> /etc/ssh/ssh_known_hosts

invoke_tests "Tools" "Git"
invoke_tests "Tools" "Git"
Loading