This repository has been archived by the owner on May 23, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
30 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
repositories | ||
.gitssh | ||
.gituser | ||
repositories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,9 @@ | |
|
||
CURRENT_DIR=$(pwd) | ||
|
||
source "${CURRENT_DIR}/script/helpers/git" | ||
|
||
if [ ! -d ".git" ]; then | ||
if [ ! -d "${CURRENT_DIR}/.git" ]; then | ||
# No need to do anything | ||
exit | ||
fi | ||
|
||
GITUSER=$(gitUser) | ||
SSH=$(gitSSH) | ||
|
||
if [ "$SSH" == "true" ]; then | ||
git remote add upstream [email protected]:hacs/development.git | ||
else | ||
git remote add upstream https://github.com/hacs/development.git | ||
fi | ||
|
||
mv .git ..git | ||
mv "${CURRENT_DIR}/.git" "${CURRENT_DIR}/..git" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#!/usr/bin/env bash | ||
CURRENT_DIR=$(pwd) | ||
|
||
mv "${CURRENT_DIR}/..git" "${CURRENT_DIR}/.git" | ||
|
||
mv ..git .git | ||
git pull upstream master | ||
mv .git ..git | ||
|
||
mv "${CURRENT_DIR}/.git" "${CURRENT_DIR}/..git" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
if ! [ -x "$(command -v gh)" ]; then | ||
apk add go | ||
git clone https://github.com/cli/cli.git /srv/gh-cli | ||
cd /srv/gh-cli | ||
make | ||
mv ./bin/gh /usr/local/bin/ | ||
|
||
if [[ $(git remote get-url origin) == *"git@github"* ]]; then | ||
gh config set git_protocol ssh | ||
fi | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
#!/usr/bin/env bash | ||
source script/helpers/git | ||
|
||
GITUSER=$(gitUser) | ||
SSH=$(gitSSH) | ||
CURRENT_DIR=$(pwd) | ||
REPO=$1 | ||
|
||
echo $GITUSER | ||
echo $SSH | ||
|
||
mkdir -p ./repositories/${REPO} | ||
cd ./repositories/${REPO} | ||
git init | ||
cd "${CURRENT_DIR}/repositories" | ||
|
||
if [ "$SSH" == "true" ]; then | ||
git remote add origin [email protected]:${GITUSER}/${REPO}.git | ||
git remote add upstream [email protected]:hacs/${REPO}.git | ||
else | ||
git remote add origin https://github.com/${GITUSER}/${REPO}.git | ||
git remote add upstream https://github.com/hacs/${REPO}.git | ||
fi | ||
|
||
git pull upstream master | ||
gh repo fork hacs/"${REPO}" --clone=true --remote=true |