mirror of https://github.com/docker/compose.git
Let the user specify any repo as their fork
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
3547c55523
commit
634ae7daa5
|
@ -86,10 +86,10 @@ echo "Push branch to user remote"
|
|||
GITHUB_USER=$USER
|
||||
USER_REMOTE="$(find_remote $GITHUB_USER/compose)"
|
||||
if [ -z "$USER_REMOTE" ]; then
|
||||
echo "No user remote found for $GITHUB_USER"
|
||||
read -r -p "Enter the name of your github user: " GITHUB_USER
|
||||
echo "$GITHUB_USER/compose not found"
|
||||
read -r -p "Enter the name of your GitHub fork (username/repo): " GITHUB_REPO
|
||||
# assumes there is already a user remote somewhere
|
||||
USER_REMOTE=$(find_remote $GITHUB_USER/compose)
|
||||
USER_REMOTE=$(find_remote $GITHUB_REPO)
|
||||
fi
|
||||
if [ -z "$USER_REMOTE" ]; then
|
||||
>&2 echo "No user remote found. You need to 'git push' your branch."
|
||||
|
|
Loading…
Reference in New Issue