Ver Fonte

Let the user specify any repo as their fork

Signed-off-by: Aanand Prasad <[email protected]>
Aanand Prasad há 9 anos atrás
pai
commit
634ae7daa5
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      script/release/make-branch

+ 3 - 3
script/release/make-branch

@@ -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."